joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419550
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4195a8
mov esi, dword [esp + 0x18]
lea edi, [edx + eax*2]
xor ebx, ebx
movzx eax, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea ebp, [ebx + eax]
jne 0x4195a0
cmp ebx, ebp
ja 0x41961d
cmp ebp, dword [esp + 0x1c]
ja 0x419629
add ebx, esi
nop word [eax + eax]
test eax, eax
je 0x4195a2
dec eax
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x419590
jmp 0x4195ff
ja 0x4195a8
cmp edx, edi
mov ebx, ebp
jne 0x419565
mov edx, dword [esp + 0x24]
test edx, edx
je 0x419603
mov esi, dword [esp + 0x20]
movzx ecx, cx
mov al, 1
add edx, esi
nop dword [eax + eax]
movzx ebx, byte [esi]
lea edi, [esi + 1]
test bl, bl
js 0x4195e0
mov esi, edi
sub ecx, ebx
jns 0x4195f7
jmp 0x419605
cmp edi, edx
je 0x41960c
movzx edi, byte [esi + 1]
and ebx, 0x7f
add esi, 2
shl ebx, 8
or ebx, edi
sub ecx, ebx
js 0x419605
xor al, 1
cmp esi, edx
jne 0x4195c0
jmp 0x419605
xor eax, eax
jmp 0x419605
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x41f088
push 0x2b
push 0x41e96b
call fcn.0041bae0
push 0x41f098
push ebp
push ebx
call fcn.0041bed0
push 0x41f098
push dword [esp + 0x20]
push ebp
call fcn.0041be60
int3

Function at 0x41aa21
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41aa60
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41aa60
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41aa60
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41aa60
cmp dword [ecx + 0x74], 0xe
jbe 0x41aa60
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41b410
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [esp + 0x30]
cmp dword [edi + 4], 0
je 0x41b491
lea ebx, [edi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x41b4cc
cmp dword [esp + 4], 0
je 0x41b4b3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x41b4ea
mov esi, eax
inc eax
mov dword [edi], eax
mov eax, dword [0x4221d8]
nop word [eax + eax]
mov dword [edi + 8], eax
lock cmpxchg dword [0x4221d8], edi
jne 0x41b470
mov byte [0x4221d4], 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
jmp 0x41b4c3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x41b52c
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [edi], ecx
jne 0x41b4b7
mov esi, dword [esp]
jmp 0x41b4c3
mov esi, dword [edi]
jmp 0x41b4c2
mov esi, eax
push dword [esp]
call dword [sym.imp.KERNEL32.dll_TlsFree]
dec esi
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov dword [esp + 8], 0
lea eax, [esp + 8]
mov ecx, esp
mov edx, 0x41d8f4
push 0x41d954
push eax
call fcn.0041b050
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
mov dword [esp + 8], 0x41d90c
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0x41c47c
mov dword [esp + 0x14], 0
lea eax, [esp + 8]
push 0x41d944
push eax
call fcn.0041ba00
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0x41d90c
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0x41c47c
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.0041b020
int3
Function at 0x41bbf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push edi
push esi
sub esp, 0x68
movzx eax, byte [esp + 0x78]
mov esi, dword [esp + 0x84]
mov ebx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
mov edi, dword [esp + 0x80]
test eax, eax
mov dword [esp + 8], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], edx
je 0x41bc41
cmp eax, 1
jne 0x41bcbe
mov dword [esp], 0x41eb2c
jmp 0x41bc48
mov dword [esp], 0x41eb2a
mov edx, 2
mov eax, dword [esp + 0x90]
cmp dword [ecx], 0
mov dword [esp + 4], edx
jne 0x41bcda
mov ecx, esp
lea edx, [esp + 8]
lea esi, [esp + 0x10]
mov dword [esp + 0x38], 0x41eb68
mov dword [esp + 0x3c], 3
mov dword [esp + 0x48], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0x41a0f0
mov dword [esp + 0x20], edx
lea edx, [esp + 0x18]
mov dword [esp + 0x24], 0x41a0d0
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0x41a0d0
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 3
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.0041ba00
mov edx, 7
mov dword [esp], 0x41eb2e
mov eax, dword [esp + 0x90]
cmp dword [ecx], 0
mov dword [esp + 4], edx
je 0x41bc5d
movsd xmm0, qword [ecx + 0x10]
movsd xmm2, qword [ecx]
movsd xmm1, qword [ecx + 8]
mov edx, esp
lea esi, [esp + 0x50]
mov dword [esp + 0x38], 0x41eb9c
mov dword [esp + 0x3c], 4
mov dword [esp + 0x48], 0
mov dword [esp + 0x18], edx
lea edx, [esp + 8]
mov dword [esp + 0x1c], 0x41a0f0
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0x4172f0
lea esi, [esp + 0x10]
mov dword [esp + 0x28], edx
lea edx, [esp + 0x18]
mov dword [esp + 0x2c], 0x41a0d0
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0x41a0d0
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 4
movsd qword [esp + 0x60], xmm0
movsd qword [esp + 0x58], xmm1
movsd qword [esp + 0x50], xmm2
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.0041ba00
int3
Function at 0x402920
Capabilities:
Encode data using xor
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
lea eax, [fcn.00402920]
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0xccc
mov dword [esp + 0x28], 0x4091
mov byte [esp + 0x27], 0x2e
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
xor ecx, 0x313e
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x28]
xor ecx, 0x6ea3
mov dword [esp + 4], ecx
mov dword [esp + 0xc], eax
jmp 0x402a0f
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov byte [esp + 0xb], 0xe8
mov dx, word [esp + 0x2e]
add dx, 0x27a8
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
add esi, 0x1cd2
adc edi, 0
mov word [esp + 0x2e], dx
mov bl, byte [esp + 0xb]
mov byte [esp + 0x1b], bl
xor esi, eax
xor edi, ecx
or esi, edi
mov dword [esp], esi
je 0x4029cf
jmp 0x4029be
mov al, byte [esp + 0x1b]
mov cl, byte [esp + 0x27]
add cl, 0xc2
cmp al, cl
jbe 0x402a29
jmp 0x4029db
mov eax, dword [esp + 0x20]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 0x6868
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
mov esi, dword [esp + 0x28]
sub eax, dword [esp + 0x28]
xor esi, 0x5091
sub ecx, esi
mov dword [esp + 0x1c], ecx
cmp eax, edx
je 0x4029db
mov eax, dword [esp + 0x1c]
and eax, 0xfffff000
mov dword [esp + 0xc], eax
jmp 0x402a21
mov eax, dword [esp + 0xc]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x402a3d
jmp 0x4029db
jmp 0x4029db
mov al, 1
test al, 1
jne 0x402a0f
jmp 0x402a33
mov eax, dword [esp + 0xc]
mov dword [esp + 0x20], eax
jmp 0x4029cf
mov dword [esp + 0x20], 0
jmp 0x4029cf
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
mov eax, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
je 0x40297c
jmp 0x402a1f

Function at 0x405000
Capabilities:
Get memory capacity

Disassembly:
mov dword [0x41f99c], esi
push ebp
push esp
mov dword [0x41f9a0], edi
pop dword [0x41f9ac]
mov dword [0x41f9a4], ebx
pop dword [0x41f9a8]
mov dword [0x41f99c], esi
jmp fcn.00401340
Function at 0x100011e3
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x10017014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x1000135b
cmp dword [0x10017834], 0
je 0x1000135b
push ebx
push esi
push 0x104
lea ecx, [ebp - 0x20c]
xor ebx, ebx
push ecx
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push str.SaveLogFile__Start_r_n
call fcn.1000150d
lea eax, [ebp - 0x20c]
mov dword [esp], 0x10010f3c
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov esi, eax
mov dword [ebp - 0x240], esi
pop ecx
pop ecx
test esi, esi
je 0x10001359
push edi
push 0x30
pop edi
push edi
lea eax, [ebp - 0x23c]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
push 4
push str.WBXT
lea eax, [ebp - 0x23c]
push 4
push eax
call fcn.10006ad9
mov eax, 0xfeff
mov word [ebp - 0x234], di
mov word [ebp - 0x238], ax
xor eax, eax
inc eax
mov dword [ebp - 0x21c], edi
push esi
push edi
push eax
mov byte [ebp - 0x235], al
mov word [ebp - 0x232], ax
lea eax, [ebp - 0x23c]
push eax
mov dword [ebp - 0x220], edi
mov byte [ebp - 0x236], 3
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x2c
call fcn.100065ac
cmp eax, 1
jne 0x10001338
mov edi, dword [0x10017834]
mov esi, dword [edi + 0x1c]
add esi, edi
cmp dword [edi + 0x10], ebx
jbe 0x10001319
cmp byte [esi + 2], 3
jne 0x10001319
push dword [ebp - 0x240]
movzx eax, word [esi]
push eax
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
movzx eax, word [esi]
add esp, 0x10
add esi, eax
mov eax, dword [edi + 0x18]
add eax, edi
cmp esi, eax
jb 0x10001313
movzx esi, word [edi + 8]
add esi, edi
inc ebx
cmp ebx, dword [edi + 0x10]
jb 0x100012e3
push dword [ebp - 0x240]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x10017830]
pop ecx
test eax, eax
je 0x1000134d
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x1000134d
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.SaveLogFile__End_r_n
call fcn.1000150d
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100085db
leave
ret
Function at 0x10001367
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x10017014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x10017ce8], 0x64
jbe 0x1000138e
mov eax, str.SaveLogFile_more_than_100_files_r_n
jmp 0x100014c7
push ebx
push esi
push str.SaveLogFile__Start_r_n
call fcn.1000150d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, 0x100170e8
pop ecx
push esi
call ebx
cmp eax, 0xa
ja 0x100013bb
push 0x104
push esi
call fcn.100015e7
pop ecx
pop ecx
push esi
call ebx
cmp eax, 0xa
jbe 0x100014c0
inc word [0x10017ce8]
lea eax, [ebp - 0x402]
push edi
mov esi, str..wbt
lea edi, [ebp - 0x40c]
push 0x1f6
push 0
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x20c]
mov esi, 0x100170e8
mov edi, 0x104
push esi
push edi
push eax
call fcn.10001ad1
push esi
call ebx
mov esi, eax
lea eax, [ebp - 0x40c]
push eax
call ebx
movzx ecx, word [0x10017ce8]
sub esi, eax
lea eax, [ebp - 0x40c]
sub edi, esi
push eax
push ecx
push str._d_s
lea eax, [ebp - 0x20c]
lea eax, [eax + esi*2]
push edi
push eax
call fcn.10001b16
mov eax, dword [0x10017834]
add esp, 0x14
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
test eax, eax
je 0x10001484
push 0
push eax
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
test eax, eax
jne 0x10001484
call esi
push eax
push str.SaveLogFile_FlushViewOfFile_Failed__lastError___u__r_n
call fcn.1000150d
pop ecx
pop ecx
push str.SaveLogFile__FlushViewOfFile_r_n
call fcn.1000150d
pop ecx
push 0
lea eax, [ebp - 0x20c]
mov ebx, 0x100170e8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x100014c0
lea eax, [ebp - 0x20c]
push eax
push ebx
call esi
push eax
push str.SaveLogFile_save_Failed__lastError___u__source_s__Dest_s_r_n
call fcn.1000150d
add esp, 0x10
pop esi
mov eax, str.SaveLogFile__End_r_n
pop ebx
push eax
call fcn.1000150d
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100085db
leave
ret

Function at 0x1000150d
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x10017014]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x3ff
push eax
call fcn.10006aa6
xor eax, eax
add esp, 0x14
mov word [ebp - 6], ax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100085db
leave
ret
Function at 0x100015e7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x10017014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10017834], 0
push ebx
mov ebx, dword [ebp + 8]
je 0x10001778
test ebx, ebx
je 0x10001778
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jle 0x10001777
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x10001777
push edi
push str.GetMappedFileNameW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10001776
lea ecx, [esi - 1]
push ecx
push ebx
push dword [0x10017834]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x10001776
xor eax, eax
mov word [ebp - 0x81c], ax
lea eax, [ebp - 0x81c]
push eax
push 0x1ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10001776
mov eax, dword [0x100102cc]
lea esi, [ebp - 0x81c]
movzx ecx, word [ebp - 0x81c]
xor edi, edi
mov dword [ebp - 0xc], eax
mov ax, word [0x100102d0]
mov word [ebp - 8], ax
mov dword [ebp - 0x820], esi
push 0x104
lea eax, [ebp - 0x214]
mov word [ebp - 0xc], cx
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10001753
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jae 0x10001753
push eax
lea esi, [ebx + eax*2]
lea eax, [ebp - 0x214]
push eax
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10001709
cmp word [esi], 0x5c
jne 0x10001709
xor edi, edi
inc edi
jmp 0x1000170b
xor edi, edi
test edi, edi
je 0x1000174d
push esi
lea eax, [ebp - 0xc]
push eax
push 0x10010298
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.10001b16
add esp, 0x14
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0x105
push ebx
call fcn.10001a7f
mov esi, dword [ebp - 0x820]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x10001753
mov dword [ebp - 0x820], esi
test edi, edi
jne 0x10001776
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x100016af
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100085db
leave
ret
Function at 0x1000195a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
je 0x100019e4
cmp dword [ebp + 0xc], 0
je 0x100019e4
cmp dword [ebp + 0x10], 0
je 0x100019e4
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
test eax, eax
je 0x100019b2
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100019e1
mov eax, dword [ebp + 0x14]
add eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop ebx
leave
ret
push 6
pop eax
leave
ret
Function at 0x10003cb1
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x10017014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10003ded
cmp dword [0x10017728], 2
je 0x10003ce7
xor eax, eax
inc eax
jmp 0x10003def
mov ebx, dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
lea eax, [ebp - 0x2c]
push eax
xor ecx, ecx
push ecx
push ecx
push 0x17
push edi
mov dword [ebp - 0x2c], ecx
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10003ded
push dword [ebp - 0x2c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x10003ded
push dword [ebp - 0x2c]
and dword [ebp - 0x30], 0
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
push esi
push 0x17
push edi
call ebx
test eax, eax
je 0x10003de0
push 2
call dword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
test eax, eax
je 0x10003de0
lea eax, [ebp - 0x34]
xor ebx, ebx
push eax
push ebx
push 0xa
mov dword [ebp - 0x34], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x10003dda
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x38], 6
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x10], 0x120116
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_MapGenericMask]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x40], 0x14
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], ebx
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x34]
push esi
call dword [sym.imp.ADVAPI32.dll_AccessCheck]
push dword [ebp - 0x34]
neg eax
sbb eax, eax
and dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 0x30]
pop ecx
jmp 0x10003def
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100085db
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100041e5
test al, 0x10
je 0x100041e5
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100043fb
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x10017014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10004295
add esp, 0x18
lea eax, [ebp - 0x20c]
push str.wbxmetrics.log
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100044f8
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10004295
add esp, 0xc
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x100044c8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, 0x208
lea eax, [ebp - 0x20c]
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x100044d3
lea eax, [ebp - 0x45c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000446c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100085db
leave
ret
Function at 0x10004f3b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa30
mov eax, dword [0x10017014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push 0x208
mov dword [ebp - 0xa30], eax
lea eax, [ebp - 0x20c]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10005c9b
add esp, 0x14
test eax, eax
je 0x10005166
lea eax, [ebp - 0x20c]
push eax
push ebx
push 0x100172f0
call fcn.10001ad1
push 0x10005175
lea eax, [ebp - 0x20c]
push str.wbxtra_.wbt
push eax
call fcn.100058c9
push 0x208
lea eax, [ebp - 0x61c]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
push str._02hu_02hu_04hu__02hu_02hu_02hu.wbt
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.10005c43
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x24
test edi, edi
je 0x10005032
push edi
call ebx
test eax, eax
jle 0x10005032
lea eax, [ebp - 0x61c]
push eax
push edi
push str.wbxtra
push str._s__s__s
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.100041e9
push edi
push str.WBXTRA_TRACE_FILE_EX
push str._s__s
lea eax, [ebp - 0xa2c]
push 0x104
push eax
call fcn.100041e9
add esp, 0x2c
jmp 0x1000506a
lea eax, [ebp - 0x61c]
mov edi, 0x104
push eax
push str.wbxtra
push str._s__s
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.100041e9
push str.WBXTRA_TRACE_FILE_EX
lea eax, [ebp - 0xa2c]
push edi
push eax
call fcn.10004295
add esp, 0x20
push 0x100174f8
call ebx
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jle 0x1000510e
push 0x208
lea eax, [ebp - 0x414]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.10004295
add esp, 0x18
lea eax, [ebp - 0x414]
mov ebx, 0x100174f8
push ebx
push eax
call edi
lea eax, [ebp - 0x414]
push eax
call fcn.100041cb
pop ecx
test eax, eax
jne 0x100050f1
lea eax, [ebp - 0x414]
push eax
push str.Create_new_folder___s_r_n
call fcn.1000150d
pop ecx
pop ecx
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x100050fb
push ebx
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
push str.wbxtra_FolderName__file_name_is___s_r_n
call fcn.1000150d
pop ecx
pop ecx
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
mov ebx, dword [ebp - 0xa30]
lea eax, [ebp - 0x20c]
push esi
push esi
push 2
push ebx
push esi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10005164
lea eax, [ebp - 0xa2c]
push eax
push dword [section..data]
push esi
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100085db
leave
ret
Function at 0x1000519f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x100051df
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
js 0x100051de
cmp dword [ebp + 0x10], 0
jl 0x100051de
push edi
xor edi, edi
test esi, esi
je 0x100051dd
push ebx
lea ebx, [eax + 8]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x100051d5
cmp dword [ebx], 0
je 0x100051d5
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add ebx, 0xc
cmp edi, esi
jb 0x100051c2
pop ebx
pop edi
pop esi
pop ebp
ret