joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10026b8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x100a024]
cmp eax, 0xffffffff
je 0x1002767
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
mov esi, 0x314
push esi
push 0x100a5a0
push dword [0x100a024]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100275e
cmp dword [ebp - 4], esi
jne 0x100275e
cmp dword [0x100a5a0], 0x6e776453
jne 0x100275e
test byte [0x100a5ab], 0x80
jne 0x1002765
or byte [0x100a5ab], 0x40
push 0x100a7b0
push 0x103
push 0x100a9e0
mov byte [0x100a7af], bl
mov byte [0x100a8b3], bl
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0xc
cmp dword [0x100a5a4], 0x10000
jne 0x1002765
test dword [0x100a5a8], 0x3fffffec
jne 0x1002765
and byte [0x100a5ab], 0xbf
jmp 0x1002765
or byte [0x100a5ab], 0x80
pop esi
pop ebx
leave
ret

Function at 0x1002769
Capabilities:
Create directory
Delete directory
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x100a028]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
xor ebx, ebx
push ebx
mov dword [ebp + 0x90], eax
mov dword [ebp - 0x7c], ebx
call esi
mov dword [ebp - 0x80], eax
or eax, 1
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov dword [ebp - 0x78], ebx
xor edx, edx
mov ecx, 0xf4240
mov eax, edi
div ecx
lea eax, [ebp - 0x74]
push edx
push dword [ebp + 0x9c]
push 0x10021fc
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x10
push ebx
lea eax, [ebp - 0x74]
push eax
inc edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10027f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1002818
inc dword [ebp - 0x78]
cmp dword [ebp - 0x78], 0x3e8
jl 0x10027a7
jmp 0x1002818
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x1002811
push 4
push ebx
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 0x7c], 1
push dword [ebp - 0x80]
call esi
mov ecx, dword [ebp + 0x90]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
pop ebx
call fcn.01005c72
add ebp, 0x94
leave
ret 4
Function at 0x1002838
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xbac]
sub esp, 0xc2c
mov eax, dword [0x100a028]
mov dword [ebp + 0xba8], eax
push 0x208
lea eax, [ebp + 0x9a0]
push eax
mov byte [ebp - 0x61], 0
mov dword [ebp - 0x70], 0x100
mov dword [ebp - 0x7c], 0x400
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100293f
push edi
lea edi, [ebp + 0x9a0]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002885
push esi
mov esi, 0x1002254
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0x9a0]
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100293d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002248
push edi
call esi
test eax, eax
mov dword [ebp - 0x74], eax
je 0x1002936
push 0x1002238
push edi
call esi
test eax, eax
mov dword [ebp - 0x78], eax
je 0x1002936
push ebx
push 0x1002224
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x1002935
push 0x1002208
push edi
call esi
test eax, eax
mov dword [ebp - 0x68], eax
je 0x1002935
lea eax, [ebp - 0x6c]
push eax
push 0
call ebx
test eax, eax
jne 0x1002935
cmp dword [ebp - 0x6c], 0x13
jne 0x1002935
push eax
call dword [ebp - 0x74]
mov esi, eax
test esi, esi
je 0x1002935
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x7a0]
push eax
push esi
call dword [ebp - 0x68]
test eax, eax
jne 0x1002931
mov al, byte [ebp - 0x60]
mov byte [ebp - 0x61], al
push esi
call dword [ebp - 0x78]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop edi
mov ecx, dword [ebp + 0xba8]
mov al, byte [ebp - 0x61]
call fcn.01005c72
add ebp, 0xbac
leave
ret

Function at 0x1002955
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100a028]
push ebx
mov bl, byte [ebp + 8]
push esi
push edi
mov esi, 0x1002264
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x5c3a3f
push eax
movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x10], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, eax
dec eax
dec eax
je 0x10029a0
dec eax
je 0x10029ee
sub eax, 3
je 0x100299b
xor edi, edi
jmp 0x10029ee
push 3
pop edi
jmp 0x10029ee
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push 0x80000000
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 8], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1002997
push esi
lea eax, [ebp + 8]
push eax
push 0x18
lea eax, [ebp - 0x28]
push eax
push esi
push esi
push 0x70000
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10029e5
cmp dword [ebp - 0x20], 0xb
je 0x10029e7
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.01005c72
leave
ret 4
Function at 0x1002b8a
Capabilities:
Check if file exists
Delete directory
Delete file
Move file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x100ad40
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x100a184]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1002bb2
push eax
call esi
and dword [0x100a184], 0
mov eax, dword [0x100a024]
cmp eax, 0xffffffff
je 0x1002bc6
push eax
call esi
or dword [0x100a024], 0xffffffff
mov esi, dword [0x100a008]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov edi, 0x100a008
jmp 0x1002c0c
mov eax, dword [esi + 4]
test eax, eax
je 0x1002c0a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1002c06
call ebp
cmp eax, 2
je 0x1002c06
cmp eax, 3
je 0x1002c06
push 4
push 0
push dword [esi + 4]
call ebx
and dword [esi + 4], 0
mov esi, dword [esi]
cmp esi, edi
jne 0x1002bdf
mov esi, dword [0x100a010]
mov edi, 0x100a010
jmp 0x1002c4a
mov eax, dword [esi + 4]
test eax, eax
je 0x1002c48
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x1002c44
call ebp
cmp eax, 2
je 0x1002c44
cmp eax, 3
je 0x1002c44
push 4
push 0
push dword [esi + 4]
call ebx
and dword [esi + 4], 0
mov esi, dword [esi]
cmp esi, edi
jne 0x1002c1d
push 0x100ad40
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x1002dd6
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
test edx, edx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
je 0x1002e00
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x100a1a0]
inc ecx
dec edx
jne 0x1002de8
pop edi
pop esi
ret 0xc
Function at 0x1003192
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [0x100ad24]
xor ebx, ebx
cmp eax, ebx
je 0x100320a
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10031be
push ebx
lea ecx, [ebp - 4]
push ecx
sub eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push dword [ebp + 8]
push dword [0x100ad24]
call esi
test eax, eax
je 0x100320d
mov ecx, 0x100229c
mov eax, ecx
push edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10031ed
push ebx
lea edx, [ebp - 4]
push edx
sub eax, edi
push eax
push ecx
push dword [0x100ad24]
call esi
test eax, eax
pop edi
je 0x100320d
xor ebx, ebx
inc ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x1003391
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
cmp dword [0x100a044], 0
mov eax, dword [0x100a028]
mov dword [ebp - 4], eax
jne 0x100347c
push esi
push 0x100236c
push 0x1002364
push dword [ebp + 8]
call fcn.01005b62
test eax, eax
mov esi, 0x104
je 0x10033f4
push esi
lea ecx, [ebp - 0x20c]
push ecx
push 1
push eax
call fcn.01005a7c
test eax, eax
je 0x10033f4
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x100ad60
jmp 0x1003415
push esi
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x108]
push eax
push 0x1002354
lea eax, [ebp - 0x310]
push eax
call fcn.010029ff
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x100a058], eax
je 0x1003455
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100233c
push eax
call esi
push 0x1002328
push dword [0x100a058]
mov dword [0x100a044], eax
call esi
mov dword [0x100a040], eax
cmp dword [0x100a044], 0
pop esi
jne 0x1003469
mov dword [0x100a044], 0x100338c
cmp dword [0x100a040], 0
jne 0x100347c
mov dword [0x100a040], 0x1003387
mov ecx, dword [ebp - 4]
call fcn.01005c72
leave
ret 4

Function at 0x10034b4
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 0xc]
push esi
xor esi, esi
inc esi
cmp byte [eax], 0
je 0x10034d2
push dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x10034d2
xor esi, esi
mov eax, dword [esp + 0x14]
cmp byte [eax], 0
je 0x10034ee
push 1
push dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x10034ee
xor esi, esi
mov eax, esi
pop esi
ret 0x10
Function at 0x10034f8
Capabilities:
Query environment variable
Set environment variable
Write file on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
push ebx
push ebx
push 0x1002388
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x10035c3
push esi
mov esi, 0x100afa0
push esi
push 0x1002378
push 0x100ad60
call fcn.010029ff
push ebx
push 0x4000002
push 1
push ebx
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, eax
cmp edx, 0xffffffff
mov dword [0x100a024], edx
je 0x10035c2
push ebp
push edi
mov ebp, 0x100a5a0
xor eax, eax
push ebx
mov ecx, 0xc5
mov edi, ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
mov edi, 0x314
push edi
push ebp
push edx
mov dword [0x100a5a0], 0x6e776453
mov dword [0x100a5a4], 0x10000
mov dword [0x100a5a8], 0xc0000013
mov byte [0x100a7b0], bl
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10035ad
cmp dword [esp + 0x10], edi
jne 0x10035ad
push esi
push 0x1002388
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x10035c0
push dword [0x100a024]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x100a024], 0xffffffff
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x10035c6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x10035e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [0x101b0c0], 0
jne 0x1003641
lea eax, [ebp - 0x280]
push eax
push 0x200
push esi
call fcn.01002b22
lea eax, [ebp - 0x280]
push eax
call fcn.0100321e
push 0x80
lea eax, [ebp - 0x80]
push eax
push 0x20000003
push dword [0x100a05c]
mov byte [ebp - 0x80], 0
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10010
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x280]
push eax
push dword [0x100aae4]
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.01002b8a
test esi, esi
jne 0x100364b
inc esi
cmp dword [0x100a060], 0
je 0x1003666
push 0x100ad40
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and dword [0x100a060], 0
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10039e5
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100a028]
push edi
push dword [ebp + 8]
xor edi, edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1003a45
lea eax, [ebp - 0x10]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1003a4c
xor eax, eax
jmp 0x1003b02
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp + 8]
push eax
push 0x10000
push 0x100b0c0
push 4
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x1003b01
push esi
push dword [0x100b0c0]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, eax
push esi
call fcn.010038ec
cmp eax, edi
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x1003ade
mov ecx, esi
mov esi, dword [0x100b0c0]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 8]
push eax
push 0x10000
push 0x100b0c0
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x1003b00
push dword [0x100b0c0]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, eax
push esi
call fcn.010038ec
test eax, eax
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jne 0x1003ae5
push 8
call fcn.010035c6
mov ecx, esi
mov esi, dword [0x100b0c0]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
inc eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.01005c72
leave
ret 0xc
Function at 0x1004168
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x10]
mov edx, esi
xor ebx, ebx
push edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1004179
push 0x2e
push esi
call dword [sym.imp.msvcrt.dll_strrchr]
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x10041e6
push 0x10024b4
push edi
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
pop ecx
pop ecx
jne 0x10041e6
xor ebx, ebx
inc ebx
mov eax, dword [0x101b0c8]
xor edx, edx
mov ecx, 0x3e8
div ecx
inc dword [0x101b0c8]
push edx
push 0x10024ac
push edi
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10041a9
push esi
push 0x100a008
call fcn.01004143
jmp 0x10041e9
mov byte [esi], 0
pop edi
pop esi
mov eax, ebx
pop ebx
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100a028]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, esi
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10042aa
sub eax, edx
lea ecx, [eax + 1]
mov edx, ecx
shr ecx, 2
lea edi, [ebp - 0x108]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp + eax - 0x108]
cmp byte [eax - 1], 0x5c
pop edi
pop esi
je 0x10042e0
mov byte [eax], 0x5c
mov byte [eax + 1], 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push dword [ebp + 0xc]
push eax
call fcn.0100423b
test eax, eax
je 0x1004345
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1004345
test al, 0x10
je 0x1004345
push 0x100240c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x1004340
push 0x10024bc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1004340
push 0
lea ecx, [ebp - 0x108]
push ecx
call eax
test eax, eax
jne 0x1004340
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
inc eax
jmp 0x1004347
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.01005c72
leave
ret 0xc
Function at 0x1005c72
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100a028]
jne 0x1005c7b
ret
jmp 0x1005c80
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x100a028]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x101b0cc]
test eax, eax
je 0x1005ca4
call eax
cmp dword [0x101b0d0], 0
je 0x1005ceb
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x101b0d0]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.01005c72
add ebp, 0x2a8
leave
ret

Function at 0x1006f0c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x1006f47
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x1006f24
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x1006f63
dec esi
je 0x1006f5c
dec esi
jne 0x1006f68
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc
Function at 0x1001365
Capabilities:
Get system information on windows

Disassembly:
mov al, byte [0x100601c]
sub esp, 0x28
cmp al, 2
jne 0x10013ac
mov dword [esp], 0
mov cl, byte [0x100601c]
cmp cl, al
jne 0x10013ac
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, 1
cmp dword [esp + 0x18], ecx
jbe 0x1002b44
lea eax, [esp]
push eax
mov byte [0x100601c], cl
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
add esp, 0x28
ret
mov eax, dword [esp + 0x14]
lea edx, [eax - 1]
test eax, edx
jne 0x100139c
lea eax, [esp]
push eax
mov byte [0x100601c], 0xff
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
add esp, 0x28
ret

Function at 0x1001677
Capabilities:
Terminate process

Disassembly:
call fcn.01001cfb
push 0x5c
push 0x1001790
call fcn.010022d4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1006014
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
jne 0x1002974
xor esi, esi
inc esi
mov eax, dword [0x1006010]
cmp eax, esi
je 0x1002993
mov eax, dword [0x1006010]
test eax, eax
jne 0x10017c4
mov dword [0x1006010], esi
push 0x1001788
push 0x100177c
call fcn.01001bef
pop ecx
pop ecx
test eax, eax
jne 0x1002a42
mov eax, dword [0x1006010]
cmp eax, esi
jne 0x100172a
push 0x1001778
push 0x100176c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1006010], 2
cmp dword [ebp - 0x20], ebx
jne 0x1001737
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100605c], ebx
jne 0x10029a0
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1002a42
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
jbe 0x10017b8
cmp cx, 0x22
je 0x10029df
inc eax
inc eax
jmp 0x1001752
cmp cx, bx
je 0x10017cf
cmp dword [ebp - 0x1c], ebx
je 0x10017cf
jmp 0x100175e
mov dword [0x1006064], esi
jmp 0x1001706
movzx ecx, word [eax]
cmp cx, bx
je 0x10017e4
cmp cx, 0x20
ja 0x10017e4
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x10017cf
test byte [ebp - 0x40], 1
jne 0x10029c2
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.01001808
jmp 0x10029cb
cmp eax, esi
jne 0x1002983
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10016cd
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10016b9
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001706
push 0x100605c
call fcn.010043d1
pop ecx
test eax, eax
je 0x1001743
push ebx
push 2
push ebx
call dword [0x100605c]
jmp 0x1001743
movzx ecx, word [ebp - 0x3c]
jmp 0x10017f1
mov dword [0x1006060], eax
cmp dword [0x1006040], ebx
jne 0x1002a1f
push eax
call dword [sym.imp.msvcrt.dll_exit]
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x1001768
cmp dword [0x1006064], ebx
jne 0x1002a2d
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1006060]
jmp 0x1002a4e
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01002384
ret
Function at 0x1001acf
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x11c], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x118]
call fcn.01001f3c
mov ecx, esi
call fcn.01001197
cmp ax, 0x3d
jne 0x10026b3
push edi
push 1
mov ecx, esi
call fcn.010011d7
mov edi, dword [esi + 4]
push 1
push 1
push 0x3d
mov ecx, esi
call fcn.010015fc
mov eax, dword [esi + 4]
sub eax, edi
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x118]
call fcn.01001962
lea ecx, [ebp - 0x118]
call fcn.01001e37
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop edi
test eax, eax
je 0x10026bf
jmp 0x10026dc
mov dword [ebp - 0x11c], eax
jmp 0x10026dc
cmp dword [ebp - 0x108], 0
je 0x1001b7d
lea ecx, [ebp - 0x118]
call fcn.010011c1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x11c]
xor ecx, ebp
call fcn.01001b96
leave
ret 8
mov dword [ebp - 0x11c], 0x80070057
jmp 0x10026dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1001b5e
and eax, 0xffff
or eax, 0x80070000
jmp 0x1001b5e
pop esi
pop ebx
jmp 0x1001b69

Function at 0x10045a9
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x28
mov dword [esp], 0
mov al, byte [0x100601c]
cmp al, 2
jne 0x1004602
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, 1
cmp dword [esp + 0x18], ecx
ja 0x10045f2
mov eax, dword [esp + 0x14]
lea edx, [eax - 1]
test eax, edx
jne 0x10045f2
lea eax, [esp]
push eax
mov byte [0x100601c], 0xff
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
add esp, 0x28
ret
lea eax, [esp]
push eax
mov byte [0x100601c], cl
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
add esp, 0x28
ret