joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x18], 0
push ebx
mov ebx, 1
jbe 0x401860
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
push ebx
push 0
push ecx
push edx
mov byte [edi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40185f
push esi
mov esi, dword [ebp + 0x10]
push str._Default_
push esi
call sym.SelectBehaviorsExe.exe_TM_CompareString
add esp, 8
test eax, eax
jne 0x401838
xor esi, esi
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 4]
lea eax, [ebp + 0x18]
push eax
push edi
push ecx
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop esi
test eax, eax
jne 0x401855
xor ebx, ebx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push edi
lea eax, [ebp - 4]
push eax
push 2
push 0
push ecx
push edx
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4018ce
mov edx, dword [ebp + 0x14]
mov eax, edx
push esi
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4018a0
mov ecx, dword [ebp - 4]
sub eax, esi
push eax
mov eax, dword [ebp + 0x10]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
test eax, eax
jne 0x4018c4
xor edi, edi
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4018e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push edi
lea eax, [ebp - 4]
push eax
push 2
push 0
push ecx
push edx
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401946
mov edx, dword [ebp + 0x14]
mov eax, edx
push esi
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401910
mov ecx, dword [ebp + 0x10]
sub eax, esi
sar eax, 1
add eax, eax
push eax
push edx
mov edx, dword [ebp - 4]
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
test eax, eax
jne 0x40193c
xor edi, edi
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x401950
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
lea eax, [ebp - 4]
push eax
push 2
push 0
push ecx
push edx
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40199c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x401992
xor esi, esi
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4019b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub esp, 8
push ebx
lea eax, [ebp - 4]
push eax
push 2
push 0
push ecx
push edx
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401a3c
mov edx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x18]
cmp edi, 4
je 0x401a07
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4019e8
mov ecx, dword [ebp - 4]
sub eax, esi
push eax
mov eax, dword [ebp + 0x10]
push edx
push edi
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
jmp 0x401a2b
push edx
call fcn.004173a2
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
add esp, 4
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
test eax, eax
jne 0x401a32
xor ebx, ebx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401a50
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push ecx
push edx
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401a96
mov eax, dword [ebp - 4]
push 0x434ed2
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401a8c
xor esi, esi
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401aa0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push ecx
push edx
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401ae6
mov eax, dword [ebp - 4]
push 0x434ed4
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x401adc
xor esi, esi
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401af0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4ae7ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x110], eax
test ebx, ebx
je 0x401b19
cmp byte [ebx], 0
jne 0x401b2d
mov eax, 0x3f2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004171f3
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x401b19
push esi
lea ecx, [ebp - 0x108]
push ecx
push 0x10008
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x401bca
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [ebp - 0x108]
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x104]
push eax
push 0
push ecx
mov dword [ebp - 0x10c], 0x100
call edi
mov esi, eax
cmp esi, 0x103
je 0x401bac
test esi, esi
jne 0x401bbc
mov eax, dword [ebp - 0x108]
lea edx, [ebp - 0x104]
push edx
push eax
call fcn.00401af0
mov esi, eax
add esp, 8
test esi, esi
je 0x401b55
jmp 0x401bbc
mov ecx, dword [ebp - 0x110]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004171f3
mov esp, ebp
pop ebp
ret

Function at 0x401c10
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
lea eax, [ebp - 4]
push eax
push ecx
push edx
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401c4e
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x401c44
xor esi, esi
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401c60
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
lea eax, [ebp - 4]
push eax
push ecx
push edx
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x401c9e
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x401c94
xor esi, esi
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4042c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x4ae7ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x4043a6
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4043a6
test eax, eax
jne 0x404320
lea eax, [ebp - 0x408]
push eax
push 0x401
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x404335
pop edi
mov byte [esi], 0
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004171f3
mov esp, ebp
pop ebp
ret
push 0x401
push eax
lea ecx, [ebp - 0x408]
push ecx
call sym.SelectBehaviorsExe.exe_TM_CopyStringA
add esp, 0xc
push 1
lea edx, [ebp - 0x408]
push 0x3a
push edx
call sym.SelectBehaviorsExe.exe_TM_SearchCharA
add esp, 0xc
test eax, eax
je 0x404308
push 1
mov byte [eax], 0
lea eax, [ebp - 0x408]
push 0x2f
push eax
call sym.SelectBehaviorsExe.exe_TM_SearchCharA
add esp, 0xc
push edi
test eax, eax
jne 0x404389
lea ecx, [ebp - 0x408]
push ecx
push esi
call sym.SelectBehaviorsExe.exe_TM_CopyStringA
add esp, 0xc
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004171f3
mov esp, ebp
pop ebp
ret
inc eax
push eax
push esi
call sym.SelectBehaviorsExe.exe_TM_CopyStringA
add esp, 0xc
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004171f3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 0x51
pop esi
call fcn.004171f3
mov esp, ebp
pop ebp
ret
Function at 0x4043c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x4ae7ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x404540
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x404540
test eax, eax
jne 0x404420
lea eax, [ebp - 0x808]
push eax
push 0x401
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x404435
xor ecx, ecx
pop edi
mov word [esi], cx
lea eax, [ecx + 1]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004171f3
mov esp, ebp
pop ebp
ret
push 0x401
push eax
lea edx, [ebp - 0x808]
push edx
call sym.SelectBehaviorsExe.exe_TM_CopyStringW
add esp, 0xc
lea eax, [ebp - 0x808]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404440
sub eax, edx
xor ecx, ecx
sar eax, 1
je 0x40446f
mov edx, 0x3a
jmp 0x404460
cmp word [ebp + ecx*2 - 0x808], dx
je 0x404489
inc ecx
cmp ecx, eax
jb 0x404460
xor eax, eax
mov word [esi], ax
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004171f3
mov esp, ebp
pop ebp
ret
lea eax, [ebp + ecx*2 - 0x808]
test eax, eax
je 0x40446f
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x808]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4044a2
sub eax, edx
xor ecx, ecx
sar eax, 1
je 0x4044fd
mov edx, 0x2f
lea ebx, [ebx]
cmp word [ebp + ecx*2 - 0x808], dx
je 0x4044f2
inc ecx
cmp ecx, eax
jb 0x4044c0
push edi
lea edx, [ebp - 0x808]
push edx
push esi
call sym.SelectBehaviorsExe.exe_TM_CopyStringW
add esp, 0xc
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004171f3
mov esp, ebp
pop ebp
ret
lea eax, [ebp + ecx*2 - 0x808]
test eax, eax
jne 0x404520
push edi
lea edx, [ebp - 0x808]
push edx
push esi
call sym.SelectBehaviorsExe.exe_TM_CopyStringW
add esp, 0xc
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004171f3
mov esp, ebp
pop ebp
ret
push edi
add eax, 2
push eax
push esi
call sym.SelectBehaviorsExe.exe_TM_CopyStringW
add esp, 0xc
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004171f3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 0x51
pop esi
call fcn.004171f3
mov esp, ebp
pop ebp
ret
Function at 0x404560
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x4ae7ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x404697
cmp dword [ebp + 0x10], 0
je 0x404697
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov byte [edi], 0
test eax, eax
jne 0x4045c1
lea eax, [ebp - 0x408]
push eax
push 0x401
call ebx
test eax, eax
jne 0x4045d6
pop ebx
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004171f3
mov esp, ebp
pop ebp
ret
push 0x401
push eax
lea ecx, [ebp - 0x408]
push ecx
call sym.SelectBehaviorsExe.exe_TM_CopyStringA
add esp, 0xc
push esi
push 1
lea edx, [ebp - 0x408]
push 0x3a
push edx
call sym.SelectBehaviorsExe.exe_TM_SearchCharA
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40461b
lea eax, [ebp - 0x408]
push eax
push 0x401
call ebx
test eax, eax
je 0x404681
push 1
lea ecx, [ebp - 0x408]
push 0x3a
push ecx
call sym.SelectBehaviorsExe.exe_TM_SearchCharA
mov esi, eax
add esp, 0xc
test esi, esi
je 0x404681
lea edx, [ebp - 0x407]
cmp esi, edx
jne 0x40463c
mov eax, dword [ebp - 0x408]
push eax
call sym.SelectBehaviorsExe.exe_TM_IsLetterChar
add esp, 4
test eax, eax
je 0x40463c
mov byte [esi + 1], 0
push 1
lea ecx, [ebp - 0x408]
push 0x2f
push ecx
call sym.SelectBehaviorsExe.exe_TM_SearchCharA
add esp, 0xc
test eax, eax
jne 0x40465f
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x408]
jmp 0x404664
mov ecx, dword [ebp + 0x10]
push ecx
inc eax
push eax
push edi
call sym.SelectBehaviorsExe.exe_TM_CopyStringA
add esp, 0xc
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004171f3
mov esp, ebp
pop ebp
ret
pop esi
pop ebx
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004171f3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0x51
pop edi
call fcn.004171f3
mov esp, ebp
pop ebp
ret
Function at 0x4046b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x4ae7ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80c], ecx
test ecx, ecx
je 0x4048be
cmp dword [ebp + 0x10], 0
je 0x4048be
xor edx, edx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov word [ecx], dx
test eax, eax
jne 0x404717
lea eax, [ebp - 0x808]
push eax
push 0x401
call ebx
test eax, eax
jne 0x40472c
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004171f3
mov esp, ebp
pop ebp
ret
push 0x401
push eax
lea ecx, [ebp - 0x808]
push ecx
call sym.SelectBehaviorsExe.exe_TM_CopyStringW
add esp, 0xc
lea eax, [ebp - 0x808]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404735
push esi
sub eax, edx
xor ecx, ecx
sar eax, 1
push edi
lea edi, [ecx + 0x3a]
je 0x40476c
lea ecx, [ecx]
cmp word [ebp + ecx*2 - 0x808], di
je 0x404761
inc ecx
cmp ecx, eax
jb 0x404750
jmp 0x40476c
lea esi, [ebp + ecx*2 - 0x808]
test esi, esi
jne 0x4047d0
lea edx, [ebp - 0x808]
push edx
push 0x401
call ebx
test eax, eax
je 0x4047af
lea eax, [ebp - 0x808]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404787
sub eax, edx
xor ecx, ecx
sar eax, 1
je 0x4047af
lea ebx, [ebx]
cmp word [ebp + ecx*2 - 0x808], di
je 0x4047c5
inc ecx
cmp ecx, eax
jb 0x4047a0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004171f3
mov esp, ebp
pop ebp
ret
lea esi, [ebp + ecx*2 - 0x808]
test esi, esi
je 0x4047af
lea eax, [ebp - 0x806]
cmp esi, eax
jne 0x4047f3
mov ecx, dword [ebp - 0x808]
push ecx
call sym.SelectBehaviorsExe.exe_TM_IsLetterCharW
add esp, 4
test eax, eax
je 0x4047f3
xor edx, edx
mov word [esi + 2], dx
lea eax, [ebp - 0x808]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404800
sub eax, edx
xor ecx, ecx
sar eax, 1
je 0x404867
mov edx, 0x2f
jmp 0x404820
cmp word [ebp + ecx*2 - 0x808], dx
je 0x40485c
inc ecx
cmp ecx, eax
jb 0x404820
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x80c]
push eax
lea ecx, [ebp - 0x808]
push ecx
push edx
call sym.SelectBehaviorsExe.exe_TM_CopyStringW
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004171f3
mov esp, ebp
pop ebp
ret
lea eax, [ebp + ecx*2 - 0x808]
test eax, eax
jne 0x404894
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x80c]
push eax
lea ecx, [ebp - 0x808]
push ecx
push edx
call sym.SelectBehaviorsExe.exe_TM_CopyStringW
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004171f3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x80c]
push ecx
add eax, 2
push eax
push edx
call sym.SelectBehaviorsExe.exe_TM_CopyStringW
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004171f3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0x51
call fcn.004171f3
mov esp, ebp
pop ebp
ret
Function at 0x40b330
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x40b374
cmp byte [eax], 0
je 0x40b374
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x40b373
push esi
push 0x4352e8
push eax
call fcn.00418e48
mov esi, eax
add esp, 8
test esi, esi
je 0x40b372
mov eax, dword [ebp + 0xc]
push esi
push edi
push 1
push eax
call fcn.004196a4
push esi
call fcn.0041ad3c
add esp, 0x14
pop esi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40b439
cmp byte [esi], 0
je 0x40b439
push edi
push 4
push 0x4352ec
push esi
mov edi, esi
call fcn.0041795f
add esp, 0xc
test eax, eax
jne 0x40b3fa
lea edi, [esi + 4]
push 0x2a
push edi
call fcn.00417dc0
add esp, 8
test eax, eax
jne 0x40b433
push 0x3f
push edi
call fcn.00417dc0
add esp, 8
test eax, eax
jne 0x40b433
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40b433
not al
movzx eax, al
shr eax, 4
pop edi
and eax, 1
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40b4aa
cmp word [esi], 0
je 0x40b4aa
push edi
push 4
push 0x4352f4
push esi
mov edi, esi
call fcn.00419aab
add esp, 0xc
test eax, eax
jne 0x40b46b
lea edi, [esi + 8]
push 0x2a
push edi
call fcn.004173c3
add esp, 8
test eax, eax
jne 0x40b4a4
push 0x3f
push edi
call fcn.004173c3
add esp, 8
test eax, eax
jne 0x40b4a4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b4a4
not al
movzx eax, al
shr eax, 4
pop edi
and eax, 1
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x40b4b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00429400
mov eax, dword [0x4ae7ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x435300
push eax
xor edi, edi
call fcn.00418e48
mov esi, eax
add esp, 8
test esi, esi
je 0x40b547
push esi
push 0x1000
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.004190c3
mov ecx, dword [ebp + 0xc]
add esp, 0x10
dec ecx
je 0x40b519
dec ecx
jne 0x40b53e
cmp eax, 2
jb 0x40b53e
cmp byte [ebp - 0x1004], 0xff
jne 0x40b53e
cmp byte [ebp - 0x1003], 0xfe
jmp 0x40b537
cmp eax, 3
jb 0x40b53e
cmp byte [ebp - 0x1004], 0xef
jne 0x40b53e
cmp byte [ebp - 0x1003], 0xbb
jne 0x40b53e
cmp byte [ebp - 0x1002], 0xbf
jne 0x40b53e
mov edi, 1
push esi
call fcn.0041ad3c
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004171f3
mov esp, ebp
pop ebp
ret
Function at 0x40b560
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x40b56f
cmp byte [eax], 0
jne 0x40b573
xor eax, eax
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40b56f
movzx eax, al
shr eax, 4
and eax, 1
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x40b5a0
cmp word [eax], 0
jne 0x40b5a4
xor eax, eax
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b5a0
movzx eax, al
shr eax, 4
and eax, 1
pop ebp
ret

Function at 0x40ba70
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x4ae7ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x40ba8f
cmp byte [eax], 0
jne 0x40baa2
mov eax, 0x51
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004171f3
mov esp, ebp
pop ebp
ret
push esi
lea esi, [ebp - 0x408]
xor ecx, ecx
sub esi, eax
lea ecx, [ecx]
cmp ecx, 0x400
jae 0x40bac4
mov dl, byte [eax]
mov byte [esi + eax], dl
inc eax
inc ecx
cmp byte [eax], 0
jne 0x40bab0
lea eax, [ebp - 0x408]
push 0x434fac
push eax
mov byte [ebp + ecx - 0x408], 0
call fcn.00417b70
add esp, 8
push 1
test eax, eax
je 0x40bb0c
add eax, 2
push 0x5c
push eax
call sym.SelectBehaviorsExe.exe_TM_SearchCharA
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40bb2c
lea eax, [esi + 0x51]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004171f3
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x408]
push 0x3a
push ecx
call sym.SelectBehaviorsExe.exe_TM_SearchCharA
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40bb2b
lea esi, [ebp - 0x408]
jmp 0x40bb2c
inc esi
cmp byte [esi], 0x5c
jne 0x40bb32
inc esi
cmp byte [esi], 0
push ebx
push edi
je 0x40bbf3
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 1
push 0x5c
push esi
call sym.SelectBehaviorsExe.exe_TM_SearchCharA
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40bb59
mov byte [esi], 0
cmp byte [ebp - 0x408], 0
je 0x40bbcf
push 4
lea edi, [ebp - 0x408]
mov edx, edi
push 0x4352ec
push edx
call fcn.0041795f
add esp, 0xc
test eax, eax
jne 0x40bb84
lea edi, [ebp - 0x404]
push 0x2a
push edi
call fcn.00417dc0
add esp, 8
test eax, eax
jne 0x40bbb4
push 0x3f
push edi
call fcn.00417dc0
add esp, 8
test eax, eax
jne 0x40bbb4
lea eax, [ebp - 0x408]
push eax
call ebx
cmp eax, 0xffffffff
je 0x40bbb4
test al, 0x10
je 0x40bc06
cmp byte [ebp - 0x408], 0
je 0x40bbcf
lea ecx, [ebp - 0x408]
push ecx
call ebx
cmp eax, 0xffffffff
je 0x40bbcf
test al, 0x10
jne 0x40bbe2
push 0
lea edx, [ebp - 0x408]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40bc06
test esi, esi
je 0x40bbf3
mov byte [esi], 0x5c
inc esi
cmp byte [esi], 0
jne 0x40bb43
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004171f3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004171f3
mov esp, ebp
pop ebp
ret