joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4033c1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push 0x94
push 0
lea eax, [ebp - 0x94]
push eax
call fcn.00405390
add esp, 0xc
mov dword [ebp - 0x94], 0x94
lea ecx, [ebp - 0x94]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4033ff
xor eax, eax
jmp 0x40346c
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x98], edx
cmp dword [ebp - 0x98], 1
je 0x403441
cmp dword [ebp - 0x98], 2
je 0x40341f
jmp 0x40346a
cmp dword [ebp - 0x90], 4
ja 0x40342f
mov eax, 0x28
jmp 0x40346c
cmp dword [ebp - 0x90], 5
jne 0x40343f
mov eax, 0x7d0
jmp 0x40346c
jmp 0x40346a
cmp dword [ebp - 0x90], 4
ja 0x40345c
cmp dword [ebp - 0x90], 4
jne 0x403463
cmp dword [ebp - 0x8c], 0
jbe 0x403463
mov eax, 0x62
jmp 0x40346c
mov eax, 0x5f
jmp 0x40346c
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x403f77
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x14]
push eax
push 3
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x403fb3
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov dword [edx + 0x100], eax
xor eax, eax
jmp 0x404066
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x100], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
movsx edx, byte [ecx]
test edx, edx
je 0x404059
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x404022
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], 1
jmp 0x40404b
push 0
push 0x40c334
push str.Reg_read_error
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [ebp - 0xc]
mov dword [edx], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x100], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x14
mov dword [ebp - 0xc], edx
jmp 0x403fcd
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x40406c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
push str.System
mov eax, dword [ebp - 0x18]
push eax
call fcn.004055f0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x404095
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
cmp dword [0x40c19c], 0x62
je 0x4040ba
lea edx, [ebp - 0xc]
push edx
push 3
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
jmp 0x4040d0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4040e9
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x100], ecx
xor eax, eax
jmp 0x404178
mov dword [ebp - 0x14], 0
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x100], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
movsx eax, byte [edx]
test eax, eax
je 0x40416b
mov ecx, dword [ebp - 8]
cmp dword [ecx], 1
jne 0x404160
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
push ecx
push 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404154
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
jmp 0x404160
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x100], ecx
mov edx, dword [ebp - 8]
add edx, 0x14
mov dword [ebp - 8], edx
jmp 0x404103
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 4
Function at 0x4046c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov dword [ebp - 0xc], 0
push str.EloAddMonDoneEvent
push 0x40b7b8
lea eax, [ebp - 0x50]
push eax
call fcn.0040533a
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x50]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x40c1c0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [0x40c1c0], 0
je 0x40471b
cmp dword [ebp - 8], 0xb7
jne 0x404725
mov eax, 1
jmp 0x404860
push str.EloAddMonEvent
push 0x40b7cc
lea edx, [ebp - 0x50]
push edx
call fcn.0040533a
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x70]
mov dword [ecx], edx
cmp dword [ebp - 0x70], 0
jne 0x404766
mov eax, 1
jmp 0x404860
mov dword [ebp - 0x5c], 1
lea eax, [ebp - 0xc]
push eax
push 0
lea ecx, [ebp - 0x5c]
push ecx
push 0x404a2d
push 0x200
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x40c1b0], eax
cmp dword [ebp - 0xc], 0
jne 0x40479e
mov eax, 2
jmp 0x404860
push 2
mov edx, dword [0x40c1b0]
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0x40b7d0
push 0x40b7e0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jne 0x4047d7
mov eax, 3
jmp 0x404860
mov eax, dword [ebp - 0x70]
push eax
call dword [ebp - 0x74]
add esp, 4
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x4047f1
mov eax, 4
jmp 0x404860
mov ecx, dword [ebp - 0x58]
mov dword [0x40c198], ecx
push 0
push 0
call fcn.00402b7c
add esp, 8
mov word [ebp - 0x6a], 0xa
mov word [ebp - 0x64], 0
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x60], edx
mov dword [ebp - 4], 0x9c402030
push 0
lea eax, [ebp - 0x10]
push eax
push 0x10
lea ecx, [ebp - 0x6c]
push ecx
push 0x10
lea edx, [ebp - 0x6c]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [0x40c204]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x404852
mov eax, 5
jmp 0x404860
push 0
push 1
call fcn.00402b7c
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x404864
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov dword [ebp - 8], 0
push str.EloRemoveDevicesEvent
push 0x40b804
lea eax, [ebp - 0x4c]
push eax
call fcn.0040533a
add esp, 0xc
lea ecx, [ebp - 0x4c]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jne 0x4048aa
mov eax, 1
jmp 0x4049ad
mov edx, dword [ebp - 0x6c]
mov dword [0x40c33c], edx
mov dword [ebp - 0x58], 0
lea eax, [ebp - 8]
push eax
push 0
lea ecx, [ebp - 0x58]
push ecx
push 0x4049b1
push 0x200
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x40c340], eax
cmp dword [ebp - 8], 0
jne 0x4048eb
mov eax, 2
jmp 0x4049ad
push 2
mov edx, dword [0x40c340]
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0x40b808
push 0x40b818
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
jne 0x404924
mov eax, 3
jmp 0x4049ad
mov eax, dword [ebp - 0x6c]
push eax
call dword [ebp - 0x70]
add esp, 4
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x40493e
mov eax, 4
jmp 0x4049ad
mov ecx, dword [ebp - 0x54]
mov dword [0x40c338], ecx
push 0
push 0
call fcn.00402b7c
add esp, 8
mov word [ebp - 0x66], 0xa
mov word [ebp - 0x60], 0
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x5c], edx
mov dword [ebp - 4], 0x9c402034
push 0
lea eax, [ebp - 0xc]
push eax
push 0x10
lea ecx, [ebp - 0x68]
push ecx
push 0x10
lea edx, [ebp - 0x68]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [0x40c204]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x40499f
mov eax, 5
jmp 0x4049ad
push 0
push 1
call fcn.00402b7c
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x404ce5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push str.EloCalExitEvent
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x40c344], eax
cmp dword [0x40c344], 0
jne 0x404d0c
jmp 0x404d2b
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x404d2f
push 0x200
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov esp, ebp
pop ebp
ret
Function at 0x404d5b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x54], ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp - 0x54]
push edx
push str.EloUpdateQuickTouchEvent
push str._s_d
lea eax, [ebp - 0x4c]
push eax
call fcn.0040533a
add esp, 0x10
lea ecx, [ebp - 0x4c]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jne 0x404db6
mov eax, 1
jmp 0x404eb5
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x6c]
mov dword [edx + 0x24], eax
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
push 0x404eb9
push 0x200
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x28], eax
cmp dword [ebp - 8], 0
jne 0x404df1
mov eax, 2
jmp 0x404eb5
push 2
mov edx, dword [0x40c1b0]
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push str.OpenVxDHandle
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
jne 0x404e2a
mov eax, 3
jmp 0x404eb5
mov eax, dword [ebp - 0x6c]
push eax
call dword [ebp - 0x70]
add esp, 4
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x404e44
mov eax, 4
jmp 0x404eb5
push 0
push 0
call fcn.00402b7c
add esp, 8
mov word [ebp - 0x66], 0xa
mov cx, word [ebp - 0x54]
mov word [ebp - 0x60], cx
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], edx
mov dword [ebp - 4], 0x9c40203c
push 0
lea eax, [ebp - 0xc]
push eax
push 0x10
lea ecx, [ebp - 0x68]
push ecx
push 0x10
lea edx, [ebp - 0x68]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [0x40c204]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x404e9e
mov eax, 5
jmp 0x404eb5
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x6c]
mov dword [edx + 0x24], eax
push 0
push 1
call fcn.00402b7c
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x407655
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b9a8
cmp edx, dword [eax]
je 0x407677
add eax, 8
inc ecx
cmp eax, 0x40ba38
jl 0x407668
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b9a8]
jne 0x4077a5
mov eax, dword [0x40c350]
cmp eax, 1
je 0x40777f
test eax, eax
jne 0x4076a8
cmp dword [0x40b8f4], 1
je 0x40777f
cmp edx, 0xfc
je 0x4077a5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4076df
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004053f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405570
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407722
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405570
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a5e0
push edi
call fcn.00405670
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004053f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405400
lea eax, [ebp - 0xa0]
push 0x40a5c0
push eax
call fcn.00405400
push dword [esi + 0x40b9ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405400
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00409025
add esp, 0x2c
pop edi
jmp 0x4077a5
lea eax, [ebp + 8]
lea esi, [esi + 0x40b9ac]
push 0
push eax
push dword [esi]
call fcn.00405570
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x1000e610
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1000e64e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x1000e646
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x1000e650
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x1000e636
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1000e720
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x1000e751
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1000e751
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x1000e751
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10012250
Capabilities:
Create process on windows

Disassembly:
push 0xb4
mov eax, 0x1000f3b9
call fcn.1000f1bf
mov ecx, dword [ebp + 0xc]
xor esi, esi
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x1c]
push ecx
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x48], edx
mov dword [ebp - 4], esi
call fcn.10010926
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x5c]
call fcn.100129c2
push ebx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.10012a30
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.100132b4
lea ecx, [ebp - 0x54]
call fcn.100132b4
push 0x30
lea eax, [ebp - 0x44]
mov ebx, esi
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x44], 0x30
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x10012301
cmp dword [ebp - 0x3c], ebx
je 0x10012301
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], esi
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, dword [ebp - 0x4c]
jne 0x10012301
mov ebx, dword [ebp - 0x3c]
push 0x34
lea eax, [ebp - 0x90]
mov dword [ebp - 0x98], 0x3c
push esi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x5c]
add esp, 0xc
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x94], 0x1800540
mov dword [ebp - 0x8c], 0x100067e8
mov ecx, dword [eax - 0xc]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x88], ecx
mov ecx, dword [eax - 0xc]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x84], ecx
mov ecx, dword [eax - 0xc]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x80], ecx
movzx eax, word [eax + 0x30]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x100123a0
mov eax, dword [ebp - 0x60]
push eax
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
or dword [edi + 4], 0xffffffff
mov dword [edi + 8], eax
mov dword [edi + 0xc], esi
jmp 0x100123a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x54]
call fcn.1000daa0
lea ecx, [ebp - 0x5c]
call fcn.1000daa0
lea ecx, [ebp - 0xc0]
call fcn.1001221b
jmp 0x100123d5
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test esi, esi
sete al
call fcn.1000f111
ret 0x18
Function at 0x10017211
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xchg esp, eax
add byte [eax], al
add byte [eax - 0x7ab5b], al
inc dword [eax]
and byte [ebp - 0x7ab], 0
mov byte [ebp - 0x7aa], 0xed
and byte [ebp - 0x7a9], 0
mov byte [ebp - 0x7a8], 0x4e
mov byte [ebp - 0x7a7], 0x55
mov byte [ebp - 0x7a6], 0x56
mov byte [ebp - 0x7a5], 0x7e
mov byte [ebp - 0x7a4], 0x21
mov byte [ebp - 0x7a3], 0x20
mov byte [ebp - 0x7a2], 0x3c
mov byte [ebp - 0x7a1], 0x76
mov byte [ebp - 0x7a0], 0x7e
mov byte [ebp - 0x79f], 0x7e
mov byte [ebp - 0x79e], 0x12
push 0xb
lea eax, [ebp - 0x7ac]
push eax
call fcn.1001552f
pop ecx
push eax
mov eax, dword [ebp - 0x338]
lea eax, [ebp + eax - 0x230]
push eax
call fcn.10015490
add esp, 0xc
jmp 0x10017497
mov eax, dword [ebp - 0x6fc]
inc eax
mov dword [ebp - 0x6fc], eax
and dword [ebp - 0x37c], 0
call fcn.1001551f
sbb dword [edi - 6], 0x60b5ff31
cld
invalid

Function at 0x10018f3e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100410f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov eax, edx
mov dword [ebp - 0x214], eax
test ebx, ebx
jne 0x10018f6c
mov eax, 0x80004005
jmp 0x10019053
xor ecx, ecx
xor edx, edx
push esi
mov dword [eax], ecx
inc edx
push edi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], ecx
push eax
mov ecx, ebx
call fcn.1003d2ce
mov edi, dword [ebp - 0x210]
mov esi, eax
test esi, esi
js 0x10019048
test edi, edi
je 0x10019048
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor esi, esi
cmp eax, 0xffffffff
jne 0x10019024
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], esi
push eax
xor edx, edx
mov ecx, ebx
call fcn.1003d2ce
mov ebx, dword [ebp - 0x210]
test eax, eax
js 0x1001901b
test ebx, ebx
je 0x1001901b
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x1001901b
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x10018ff6
push dword [ebp - 0x214]
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push ecx
push eax
call fcn.10018db0
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10019048
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x10019029
push dword [ebp - 0x214]
sub ecx, edx
sar ecx, 1
push ecx
push ecx
push edi
call fcn.10018db0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000e130
leave
ret
Function at 0x1001b081
Capabilities:
Print debug messages

Disassembly:
push 0xc
mov eax, 0x1000f6f4
call fcn.1000f189
and dword [ebp - 4], 0
mov eax, dword [0x10041044]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
push dword [ebp + 8]
mov byte [ebp - 4], 1
mov esi, dword [0x10041d00]
inc esi
mov dword [0x10041d00], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push esi
lea eax, [ebp - 0x18]
push 0x10009978
push eax
call fcn.100130df
mov eax, dword [0x10041d08]
add esp, 0x14
mov esi, dword [ebp - 0x18]
test eax, eax
je 0x1001b0e0
push eax
push esi
call dword [sym.imp.msvcrt.dll_fputws]
pop ecx
pop ecx
cmp dword [0x10041d04], 0
je 0x1001b0f0
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x18]
call fcn.1000daa0
jmp 0x1001b100
call fcn.1000f0ee
ret 4
Function at 0x100264ee
Capabilities:
Enumerate files on windows

Disassembly:
push 0x274
mov eax, 0x1000fbd9
call fcn.1000f1bf
mov edi, ecx
mov dword [ebp - 0x274], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
inc ebx
and dword [ebp - 0x268], 0
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x280], esi
call fcn.10026cd7
and dword [ebp - 4], 0
mov eax, dword [0x10041044]
and dword [ebp - 0x26c], 0
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x278]
lea ecx, [ebp - 0x270]
add eax, 0xc
mov byte [ebp - 4], bl
push eax
mov dword [ebp - 0x27c], eax
call fcn.10012a78
push dword [esi]
lea ecx, [ebp - 0x270]
call fcn.10012c5d
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x268], esi
cmp esi, 0xffffffff
je 0x100265bb
lea eax, [ebp - 0x264]
mov ecx, edi
push eax
push dword [ebp - 0x27c]
call fcn.10024447
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10026587
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [ebp - 0x268], 0
mov edi, dword [ebp - 0x278]
lea ecx, [ebp - 0x270]
add edi, 4
push edi
call fcn.10012a78
mov eax, dword [ebp - 0x280]
lea ecx, [ebp - 0x270]
push dword [eax]
call fcn.10012c5d
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x268], esi
cmp esi, 0xffffffff
je 0x1002662f
mov ecx, dword [ebp - 0x274]
lea eax, [ebp - 0x264]
push eax
push edi
call fcn.10024447
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10026603
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x270]
call fcn.1000daa0
jmp 0x10026664
mov eax, ebx
call fcn.1000f111
ret 8

Function at 0x1002ffe3
Capabilities:
Get thread local storage value

Disassembly:
push 8
mov eax, 0x1000fdad
call fcn.1000f189
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.100138fa
or dword [ebp - 4], 0xffffffff
mov edi, esp
mov eax, dword [esi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100422bc]
mov ecx, dword [ebp - 0x14]
call esi
cmp edi, esp
je 0x10030025
mov ecx, 4
int 0x29
cmp eax, 0xffffffff
je 0x10030067
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10030067
mov dword [ebp - 4], 2
mov edi, esp
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x100422bc]
mov ecx, dword [ebp - 0x14]
call esi
cmp edi, esp
je 0x1003005e
mov ecx, 4
int 0x29
mov ecx, dword [ebp + 8]
push eax
call fcn.10012a78
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
jg 0x10030076
mov ebx, 0xc0000001
mov eax, ebx
jmp 0x1003008d
call fcn.1000f0ee
ret 4
Function at 0x100302d6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x1c
mov eax, 0x1000fdfb
call fcn.1000f189
mov dword [ebp - 0x14], ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, ecx
mov eax, dword [0x10041044]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov ebx, dword [ebp + 8]
mov edi, ecx
mov byte [ebp - 4], 2
mov eax, dword [ebx]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x18], eax
cmp edi, eax
jge 0x10030376
mov eax, dword [ebx]
movzx ecx, word [eax + edi*2]
call fcn.100134de
test eax, eax
je 0x100303ac
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
push edi
call fcn.1001352d
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10030232
mov esi, eax
test esi, esi
js 0x10030376
push dword [ebp - 0x20]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1003035e
test al, 0x10
je 0x1003035e
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
mov edx, esi
call fcn.100307a7
mov esi, eax
test esi, esi
jns 0x100303ac
cmp esi, 0xc0000035
je 0x100303ac
lea ecx, [ebp - 0x28]
call fcn.1000daa0
lea ecx, [ebp - 0x20]
call fcn.1000daa0
lea eax, [esi + 0x3fffffcb]
neg eax
sbb eax, eax
and eax, esi
call fcn.1000f0ee
ret 4
mov eax, dword [ebp - 0x18]
inc edi
jmp 0x1003030e

Function at 0x100303b5
Capabilities:
Copy file

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 4]
push ebx
call fcn.100302d6
mov esi, eax
test esi, esi
js 0x100303f0
push 1
xor eax, eax
push eax
push eax
push eax
push dword [edi + 0xc]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x100303e6
mov esi, 0xc0000034
mov eax, esi
not eax
shr eax, 0x1f
mov dword [edi + 0x1c], eax
pop edi
mov eax, esi
pop esi
pop ebx
ret