joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100bc587
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push str.SoftwarePTC
lea eax, [ebp - 0x408]
push eax
call sub.MSVCR70D.dll_strcpy
add esp, 8
push 0x10152614
lea ecx, [ebp - 0x408]
push ecx
call sub.MSVCR70D.dll_strcat
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x408]
push eax
call sub.MSVCR70D.dll_strcat
add esp, 8
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x408]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x100bc5e8
xor eax, eax
jmp 0x100bc61a
lea ecx, [ebp - 0x408]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x100bc606
mov dword [ebp - 4], 1
jmp 0x100bc60d
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x100bcaa0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov dword [ebp - 0x80c], 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x808]
push ecx
push 0
push 0xf003f
push 1
push 0x1017eda4
push 0
push str.SoftwarePTCpmap_mutex_list
call fcn.100bbedb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100bcb1c
mov edx, dword [ebp + 8]
push edx
push 0x101526c0
lea eax, [ebp - 0x404]
push eax
call sub.MSVCR70D.dll_sprintf
add esp, 0xc
lea ecx, [ebp - 0x404]
push ecx
mov edx, dword [ebp - 0x808]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebp - 0x808]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x404]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esp, ebp
pop ebp
ret

Function at 0x100c31de
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push str.PRO_EXPECTED_EXIT_STATUS
call sub.MSVCR70D.dll_getenv
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100c3258
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x100c3258
mov dword [0x10183be8], 0
mov edx, dword [ebp - 8]
push edx
call sub.MSVCR70D.dll_atoi
add esp, 4
mov dword [ebp - 4], eax
cmp dword [0x10183be8], 0
jne 0x100c3258
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jne 0x100c3234
cmp dword [ebp + 8], 0
je 0x100c3249
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
push str.Status___expected:__d__actual:__d_n
call fcn.1009d36b
add esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jne 0x100c3258
mov dword [ebp + 8], 0
cmp dword [0x1017eedc], 0
je 0x100c3270
mov ecx, dword [ebp + 8]
push ecx
call dword [0x1017eedc]
add esp, 4
jmp 0x100c3279
mov edx, dword [ebp + 8]
push edx
call sub.MSVCR70D.dll_exit
mov esp, ebp
pop ebp
ret
Function at 0x100c33ff
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 1
call fcn.100c33b4
test eax, eax
je 0x100c3473
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x457
je 0x100c342f
cmp dword [ebp - 0xc], 0x8ae
je 0x100c342f
jmp 0x100c3473
push str.ALLOW_SINGLE_STEP
call sub.MSVCR70D.dll_getenv
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100c345a
push 0x10153a14
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCR70D.dll__stricmp
add esp, 8
test eax, eax
je 0x100c3473
push str.Cannot_change_to_single_step_mode_in_regression_run_mode_nunless_environment_variable_ALLOW_SINGLE_STEP_is_set_to_YES_n
push str.can_change_run_mode
call fcn.10081153
add esp, 8
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x100c3cca
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov dword [ebp - 8], 0
jmp 0x100c3ce5
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
push 0x107
mov ecx, dword [ebp + 0xc]
mov dx, word [ecx]
push edx
call sub.MSVCR70D.dll_is_wctype
add esp, 8
test eax, eax
jne 0x100c3d0a
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5f
jne 0x100c3d25
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov cx, word [ecx]
mov word [eax + edx*2], cx
mov edx, dword [ebp + 0xc]
add edx, 2
mov dword [ebp + 0xc], edx
jmp 0x100c3cdc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov word [ecx + eax*2], 0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x10c]
push eax
call fcn.100957f3
add esp, 8
lea ecx, [ebp - 0x10c]
push ecx
call sub.MSVCR70D.dll_getenv
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100c3d66
mov edx, dword [ebp + 8]
mov word [edx], 0
jmp 0x100c3d76
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10095a66
add esp, 8
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x100c5e11
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
xor eax, eax
mov ax, word [0x1017ef28]
cmp eax, 0x886a
je 0x100c604f
push str.HOME
call sub.MSVCR70D.dll_getenv
add esp, 4
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x100c5ec7
mov word [0x1017ef28], 0x886a
mov byte [0x1017ef2a], 0
push 0
push 0x18
push 0x1017f02e
call fcn.10094da5
add esp, 0xc
mov word [0x1017f046], 0xfffc
mov dword [0x1017f054], 1
mov word [0x1017f048], 0
mov dword [0x1017f05c], 0
mov dword [0x1017f04c], 0
mov dword [0x1017f050], 0
mov dword [0x1017f058], 0
mov ecx, dword [ebp - 0x10c]
push ecx
push 0x1017ef28
call fcn.100cfd86
add esp, 8
jmp 0x100c6040
push str.HOMESHARE
call sub.MSVCR70D.dll_getenv
add esp, 4
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
jne 0x100c5ef6
push str.HOMEDRIVE
call sub.MSVCR70D.dll_getenv
add esp, 4
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
jne 0x100c5f09
mov eax, 1
jmp 0x100c6060
mov edx, dword [ebp - 0x108]
push edx
call sub.MSVCR70D.dll_strlen
add esp, 4
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0x104
jl 0x100c5f34
mov eax, 1
jmp 0x100c6060
push str.HOMEPATH
call sub.MSVCR70D.dll_getenv
add esp, 4
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x100c5f5a
mov eax, 1
jmp 0x100c6060
mov eax, dword [ebp - 0x110]
push eax
call sub.MSVCR70D.dll_strlen
add esp, 4
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x114]
add ecx, dword [ebp - 0x118]
cmp ecx, 0x104
jl 0x100c5f8d
mov eax, 1
jmp 0x100c6060
mov edx, dword [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x108]
push eax
lea ecx, [ebp - 0x104]
push ecx
call sub.MSVCR70D.dll_strncpy
add esp, 0xc
mov edx, dword [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x118]
lea ecx, [ebp + eax - 0x104]
push ecx
call sub.MSVCR70D.dll_strcpy
add esp, 8
mov word [0x1017ef28], 0x886a
mov byte [0x1017ef2a], 0
push 0
push 0x18
push 0x1017f02e
call fcn.10094da5
add esp, 0xc
mov word [0x1017f046], 0xfffc
mov dword [0x1017f054], 1
mov word [0x1017f048], 0
mov dword [0x1017f05c], 0
mov dword [0x1017f04c], 0
mov dword [0x1017f050], 0
mov dword [0x1017f058], 0
lea edx, [ebp - 0x104]
push edx
push 0x1017ef28
call fcn.100cfd86
add esp, 8
push 0xfffffffffffffffb
push 0x1017ef28
call fcn.100d2a56
add esp, 8
mov eax, dword [ebp + 8]
push eax
push 0x1017ef28
call fcn.100c51c5
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x100c9c25
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 0x64], 0
cmp dword [ebp + 8], 0
je 0x100c9c48
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x886a
je 0x100c9c50
or eax, 0xffffffff
jmp 0x100c9d2f
mov edx, dword [ebp + 8]
cmp dword [edx + 0x12c], 1
je 0x100c9c72
mov eax, dword [ebp + 8]
cmp dword [eax + 0x12c], 0
je 0x100c9c72
mov eax, 1
jmp 0x100c9d2f
lea ecx, [ebp - 0x60]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100c894e
add esp, 8
test eax, eax
jne 0x100c9c8e
movsx eax, byte [ebp - 0x60]
test eax, eax
jne 0x100c9c98
mov eax, 1
jmp 0x100c9d2f
call fcn.100c9d33
push eax
lea ecx, [ebp - 0x60]
push ecx
call sub.MSVCR70D.dll__stricmp
add esp, 8
test eax, eax
jne 0x100c9cb5
mov eax, 1
jmp 0x100c9d2f
movsx edx, byte [ebp - 0x5f]
test edx, edx
jne 0x100c9cc1
xor eax, eax
jmp 0x100c9d2f
lea eax, [ebp - 0x60]
push eax
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x100c9d2d
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx]
push edx
lea eax, [ebp - 0x40]
push eax
call sub.MSVCR70D.dll_strcpy
add esp, 8
movsx ecx, byte [0x1017f500]
test ecx, ecx
jne 0x100c9d11
call fcn.100c9d33
push eax
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
mov eax, dword [edx]
push eax
push 0x1017f500
call sub.MSVCR70D.dll_strcpy
add esp, 8
lea ecx, [ebp - 0x40]
push ecx
push 0x1017f500
call sub.MSVCR70D.dll__stricmp
add esp, 8
test eax, eax
jne 0x100c9d2d
mov eax, 1
jmp 0x100c9d2f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100cdeb5
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x10153ed4], 0xffffffff
jne 0x100cdf07
push str.___DIR_CACHE_DEBUG
call sub.MSVCR70D.dll_getenv
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100cdef7
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
push ecx
call sub.MSVCR70D.dll_tolower
add esp, 4
cmp eax, 0x66
je 0x100cdef7
mov dword [ebp - 8], 1
jmp 0x100cdefe
mov dword [ebp - 8], 0
mov edx, dword [ebp - 8]
mov dword [0x10153ed4], edx
mov eax, dword [0x10153ed4]
mov esp, ebp
pop ebp
ret
Function at 0x100cf884
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
push esi
mov dword [ebp - 0x21c], 0
mov eax, dword [ebp + 8]
push eax
call sub.MSVCR70D.dll_strlen
add esp, 4
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCR70D.dll_strcpy
add esp, 8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x328], eax
push 0x24
mov ecx, dword [ebp - 0x328]
push ecx
call sub.MSVCR70D.dll_strchr
add esp, 8
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
je 0x100cfa87
mov edx, dword [ebp - 0x218]
push edx
call fcn.100cfa91
add esp, 4
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0
jne 0x100cf94b
mov eax, dword [ebp - 0x218]
add eax, 1
push eax
lea ecx, [ebp - 0x104]
push ecx
call sub.MSVCR70D.dll_strcpy
add esp, 8
lea edx, [ebp - 0x104]
push edx
call sub.MSVCR70D.dll_getenv
add esp, 4
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
jne 0x100cf946
mov eax, 1
jmp 0x100cfa8c
jmp 0x100cf9cd
mov eax, dword [ebp - 0x328]
push eax
lea ecx, [ebp - 0x208]
push ecx
call sub.MSVCR70D.dll_strcpy
add esp, 8
mov edx, dword [ebp - 0x328]
mov al, byte [edx]
mov byte [ebp - 0x324], al
mov ecx, dword [ebp - 0x328]
mov byte [ecx], 0
mov edx, dword [ebp - 0x218]
add edx, 1
push edx
lea eax, [ebp - 0x104]
push eax
call sub.MSVCR70D.dll_strcpy
add esp, 8
movsx ecx, byte [ebp - 0x104]
test ecx, ecx
je 0x100cf9ba
lea edx, [ebp - 0x104]
push edx
call sub.MSVCR70D.dll_getenv
add esp, 4
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
jne 0x100cf9cd
mov eax, dword [ebp - 0x328]
mov cl, byte [ebp - 0x324]
mov byte [eax], cl
jmp 0x100cf8c3
mov edx, dword [ebp - 0x20c]
push edx
call sub.MSVCR70D.dll_strlen
add esp, 4
mov esi, eax
lea eax, [ebp - 0x104]
push eax
call sub.MSVCR70D.dll_strlen
add esp, 4
sub esi, eax
mov ecx, dword [ebp - 0x210]
add ecx, esi
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x20c]
push edx
lea eax, [ebp - 0x320]
push eax
call sub.MSVCR70D.dll_strcpy
add esp, 8
mov ecx, dword [ebp - 0x218]
mov byte [ecx], 0
mov edx, dword [ebp - 0x210]
cmp edx, dword [ebp + 0x10]
jl 0x100cfa2b
xor eax, eax
jmp 0x100cfa8c
lea eax, [ebp - 0x320]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCR70D.dll_strcat
add esp, 8
cmp dword [ebp - 0x328], 0
jne 0x100cfa4e
mov eax, 1
jmp 0x100cfa8c
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCR70D.dll_strlen
add esp, 4
mov ecx, dword [ebp + 0xc]
add ecx, eax
mov dword [ebp - 0x328], ecx
lea edx, [ebp - 0x208]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR70D.dll_strcat
add esp, 8
mov dword [ebp - 0x21c], 1
jmp 0x100cf8c3
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100d80aa
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
and ecx, 2
test ecx, ecx
jne 0x100d80d4
push 0x10156214
push str.pfu_write_internal
call fcn.100bdcb0
add esp, 8
mov eax, 4
jmp 0x100d8149
mov edx, dword [ebp + 8]
cmp dword [edx], 3
jne 0x100d80f7
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
push eax
call sub.WSOCK32.dll_send
mov dword [ebp - 4], eax
jmp 0x100d811d
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100d811d
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x14], 0
je 0x100d8135
xor eax, eax
cmp dword [ebp - 4], 0
setle al
dec eax
and eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0xc]
je 0x100d8144
call fcn.100d70d0
jmp 0x100d8149
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x100d8ae7
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
and ecx, 1
test ecx, ecx
jne 0x100d8b14
push str.read_from_a_file_which_is_not_read_open.
push str.pfu_read_internal
call fcn.100bdcb0
add esp, 8
mov eax, 4
jmp 0x100d8ba1
mov edx, dword [ebp + 8]
cmp dword [edx], 3
jne 0x100d8b4c
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
push eax
call sub.WSOCK32.dll_recv
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
cmp dword [ebp - 4], 0
jge 0x100d8b4a
mov dword [ebp - 4], 0
jmp 0x100d8b6a
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100d8b8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x100d8b86
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
jmp 0x100d8b8d
call fcn.100d70d0
jmp 0x100d8ba1
mov eax, dword [ebp + 0x10]
xor ecx, ecx
cmp dword [eax], 0
setle cl
dec ecx
and ecx, 0xfffffffe
add ecx, 3
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x100d98d9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.100d8dc8
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
je 0x100d9915
mov eax, dword [ebp - 0x14]
jmp 0x100d9998
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.100d886f
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jne 0x100d996c
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
mov edx, dword [ebp - 4]
add edx, ecx
and edx, 0xff
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
and eax, 0xff
mov ecx, dword [ebp - 0x18]
xor ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0xc]
add edx, 1
and edx, 0xffff
mov dword [ebp - 0xc], edx
jmp 0x100d9915
cmp dword [ebp - 0x14], 3
jne 0x100d9979
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], 1
jne 0x100d9995
mov eax, dword [ebp - 0xc]
shl eax, 0x10
mov ecx, dword [ebp - 4]
shl ecx, 8
or eax, ecx
or eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x100d9a71
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push 0
push 0x44
lea eax, [ebp - 0x54]
push eax
call fcn.10094da5
add esp, 0xc
mov dword [ebp - 0x28], 0x100
mov dword [ebp - 0x54], 0x44
mov ecx, dword [ebp + 0x1c]
and ecx, 2
cmp ecx, 2
jne 0x100d9aaf
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov word [ebp - 0x24], 0
cmp dword [ebp + 0xc], 0
jne 0x100d9ac2
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x58], eax
jmp 0x100d9ac8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 0x10], 0
jne 0x100d9ae1
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x5c], eax
jmp 0x100d9ae7
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x14], 0
jne 0x100d9b00
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x60], eax
jmp 0x100d9b06
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x1c]
and eax, 2
cmp eax, 2
jne 0x100d9b4d
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x54]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.100e9f32
add esp, 4
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x100d9b4b
call fcn.100d70d0
jmp 0x100d9b9d
jmp 0x100d9b81
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x54]
push edx
push 0
push 0
push 8
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.100e9f32
add esp, 4
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x100d9b81
call fcn.100d70d0
jmp 0x100d9b9d
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
push 1
call fcn.100da9f4
add esp, 0xc
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x100d9db7
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 1
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x100d9df4
call fcn.100d70d0
jmp 0x100d9df9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x100daae7
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax], 1
jne 0x100dab03
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x100dab1e
mov eax, dword [ebp + 8]
cmp dword [eax], 2
jne 0x100dab1c
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x100dab1e
xor eax, eax
pop ebp
ret
Function at 0x100ddf70
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
call fcn.100de015
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x314], 0
je 0x100ddfa1
cmp dword [ebp - 0x314], 1
je 0x100ddfe6
cmp dword [ebp - 0x314], 2
je 0x100ddfc6
jmp 0x100ddff5
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x310]
push ecx
call fcn.10095a66
add esp, 8
lea edx, [ebp - 0x310]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
jmp 0x100de00e
push 3
lea eax, [ebp - 0x108]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.100d39f8
add esp, 0x10
lea edx, [ebp - 0x108]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
jmp 0x100de00e
push 0x101568ac
push str.ntlangwrap_GetFileAttributes
call fcn.10081153
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x100de0a5
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
call fcn.100de015
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x314], 0
je 0x100de0d6
cmp dword [ebp - 0x314], 1
je 0x100de11f
cmp dword [ebp - 0x314], 2
je 0x100de0ff
jmp 0x100de132
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x310]
push ecx
call fcn.10095a66
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 4], eax
jmp 0x100de14b
push 3
lea ecx, [ebp - 0x108]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.100d39f8
add esp, 0x10
lea eax, [ebp - 0x108]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 4], eax
jmp 0x100de14b
push 0x10156910
push str.ntlangwrap_SetFileAttributes
call fcn.10081153
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x100de467
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x314], eax
call fcn.100de015
mov dword [ebp - 0x318], eax
cmp dword [ebp - 0x318], 0
je 0x100de4ab
cmp dword [ebp - 0x318], 1
je 0x100de512
cmp dword [ebp - 0x318], 2
je 0x100de4ef
jmp 0x100de540
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x310]
push edx
call fcn.10095a66
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x310]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
jne 0x100de4db
mov dword [ebp - 4], 0
push 0x80
lea edx, [ebp - 0x310]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x100de552
push 3
lea eax, [ebp - 0x108]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.100d39f8
add esp, 0x10
lea edx, [ebp - 0x108]
mov dword [ebp - 0x314], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 1
jne 0x100de52c
mov dword [ebp - 4], 0
push 0x80
mov edx, dword [ebp - 0x314]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x100de552
push 0x10156964
push str.ntlangwrap_read_dir
call fcn.10081153
add esp, 8
mov eax, dword [ebp + 8]
push eax
call fcn.100ce6f3
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x100de565
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x314], eax
call fcn.100de015
mov dword [ebp - 0x318], eax
cmp dword [ebp - 0x318], 0
je 0x100de5a6
cmp dword [ebp - 0x318], 1
je 0x100de5f7
cmp dword [ebp - 0x318], 2
je 0x100de5d4
jmp 0x100de612
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x310]
push edx
call fcn.10095a66
add esp, 8
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
jne 0x100de5d2
mov dword [ebp - 4], 0
jmp 0x100de624
push 3
lea ecx, [ebp - 0x108]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.100d39f8
add esp, 0x10
lea eax, [ebp - 0x108]
mov dword [ebp - 0x314], eax
mov ecx, dword [ebp - 0x314]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp eax, 1
jne 0x100de610
mov dword [ebp - 4], 0
jmp 0x100de624
push 0x10156988
push str.ntlangwrap_remove_dir
call fcn.10081153
add esp, 8
mov edx, dword [ebp + 8]
push edx
call fcn.100ce6f3
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret