joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401070
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push dword [ebp + 8]
lea eax, [ebp - 4]
xor esi, esi
push str._ls.local
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call fcn.004029f6
add esp, 0xc
test eax, eax
js 0x4010d5
push esi
push dword [ebp - 4]
call fcn.00401c00
test eax, eax
jne 0x4010d5
push esi
push dword [ebp - 4]
call fcn.00403b2c
pop esi
test eax, eax
jne 0x4010d5
lea eax, [ebp - 8]
push eax
push str.Comctl32.dll
call fcn.004013b6
test eax, eax
js 0x4010d5
cmp dword [ebp - 4], 0
je 0x4010d1
push dword [ebp - 4]
call fcn.00403136
leave
ret 4
push 0x81f407d1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4013ca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x46e008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x208
push 0
push eax
call fcn.00430e00
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x401433
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40142a
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4014a0
mov esi, 0x80004005
jmp 0x4014a0
push 0x5c
pop ecx
cmp cx, word [ebp + eax*2 - 0x20e]
je 0x40145f
push 1
push 0x44e564
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.004011d8
mov esi, eax
test esi, esi
js 0x4014a0
mov esi, 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00401225
mov esi, eax
test esi, esi
js 0x4014a0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
je 0x401413
test edi, edi
je 0x4014a0
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.00402c72
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ffc5
leave
ret 0xc
Function at 0x401b27
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401bf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401b57
xor esi, esi
jmp 0x401bf8
cmp eax, 3
je 0x401b68
push 0
push edi
call fcn.00401c00
test eax, eax
jne 0x401b50
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x401be5
push 0x5c
mov edx, eax
pop edi
cmp dx, di
jne 0x401b81
mov ebx, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x401b7a
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x401be5
push dword [ebp + 0xc]
xor eax, eax
push edi
mov word [ebx], ax
call fcn.00401b27
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x401bf7
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401be1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x401bd2
xor esi, esi
inc esi
jmp 0x401bf7
test esi, esi
jle 0x401bf7
movzx esi, si
or esi, 0x80070000
jmp 0x401bf7
xor esi, esi
jmp 0x401bf7
mov esi, 0x80070003
push esi
push 0x72
push str.c:_agent_work35_swix_srclibsdutildirutil.cpp
call fcn.004013b3
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401c24
test al, 0x10
je 0x401c24
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x401c21
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x4035c3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.00430290
mov eax, dword [0x46e008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x1010], ecx
cmp dword [ebp + 0x10], 0
jne 0x403611
cmp dword [ebp + 0x14], 0
jne 0x403611
mov eax, 0x1000
jmp 0x40363c
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
sub eax, edi
sbb edx, ecx
test edx, edx
jb 0x403636
ja 0x403628
cmp eax, 0x1000
jbe 0x403636
and dword [ebp - 0x1008], 0
mov eax, 0x1000
jmp 0x40363c
mov dword [ebp - 0x1008], edx
push 0
lea ecx, [ebp - 0x1008]
mov dword [ebp - 0x1008], eax
push ecx
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4036bc
mov eax, dword [ebp - 0x1008]
test eax, eax
je 0x40368c
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1018]
call fcn.0040450a
mov esi, eax
test esi, esi
js 0x4036ea
mov eax, dword [ebp - 0x1008]
mov ecx, dword [ebp - 0x1010]
add edi, eax
adc ecx, 0
mov dword [ebp - 0x1010], ecx
cmp ecx, dword [ebp + 0x14]
ja 0x4036b1
jb 0x4036a9
cmp edi, dword [ebp + 0x10]
jae 0x4036b1
test eax, eax
jne 0x4035fe
test ebx, ebx
je 0x4036ea
mov dword [ebx], edi
mov dword [ebx + 4], ecx
jmp 0x4036ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4036d3
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4036da
mov esi, 0x80004005
push esi
push 0x40f
push str.c:_agent_work35_swix_srclibsdutil_fileutil.cpp
call fcn.004013b3
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ffc5
leave
ret 0x14
Function at 0x4036fd
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test ebx, ebx
sete al
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4037e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x403743
cmp eax, 0x50
je 0x40373b
cmp eax, 0xb7
jne 0x403743
xor esi, esi
inc esi
jmp 0x4037e4
cmp eax, 3
jne 0x4037d3
movzx eax, word [edi]
mov ebx, esi
mov ecx, edi
test ax, ax
je 0x4037cc
push 0x5c
mov edx, eax
pop edi
cmp dx, di
jne 0x403764
mov ebx, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x40375d
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x4037cc
push esi
xor eax, eax
push edi
mov word [ebx], ax
call fcn.00401b27
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x4037e4
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4037e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4037b8
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x4037e4
push esi
push 0x454
push str.c:_agent_work35_swix_srclibsdutil_fileutil.cpp
call fcn.004013b3
jmp 0x4037e4
mov esi, 0x80070003
jmp 0x4037e4
test eax, eax
jg 0x4037db
mov esi, eax
jmp 0x4037e4
movzx esi, ax
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x40383e
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 8]
xor esi, esi
call fcn.00403b2c
test eax, eax
je 0x4038c7
test byte [ebp - 4], 7
push ebx
mov ebx, 0x80070000
je 0x403894
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x403894
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40388a
movzx esi, si
or esi, ebx
test esi, esi
jns 0x403894
push esi
push 0x5c4
jmp 0x4038bc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4038c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4038b4
movzx esi, si
or esi, ebx
test esi, esi
jns 0x4038c6
push esi
push 0x5ca
push str.c:_agent_work35_swix_srclibsdutil_fileutil.cpp
call fcn.004013b3
pop ebx
mov eax, esi
pop esi
leave
ret 4
Function at 0x4038ce
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
xor esi, esi
cmp dword [ebp + 0x10], ebx
setne bl
cmp dword [ebp + 0x14], esi
je 0x4038e5
or ebx, 2
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4039e2
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [ebp + 0x10], esi
jne 0x40391d
cmp edi, 0x50
je 0x403915
cmp edi, 0xb7
jne 0x40391d
xor esi, esi
inc esi
jmp 0x4039e1
cmp edi, 2
jne 0x403936
push esi
push dword [ebp + 8]
call fcn.00403b2c
test eax, eax
je 0x4039d8
push 3
pop edi
cmp edi, 3
jne 0x4039d0
mov edi, dword [ebp + 0xc]
mov ecx, esi
mov edx, edi
movzx eax, word [edi]
test ax, ax
je 0x4039c9
push 0x5c
mov edi, eax
pop esi
cmp di, si
jne 0x40395a
mov ecx, edx
add edx, 2
movzx eax, word [edx]
mov edi, eax
test ax, ax
jne 0x403953
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], ecx
push 0
pop esi
test ecx, ecx
je 0x4039c9
push esi
xor eax, eax
push edi
mov word [ecx], ax
call fcn.00401b27
mov esi, eax
mov eax, dword [ebp + 0x10]
push 0x5c
pop ecx
mov word [eax], cx
test esi, esi
js 0x4039e1
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4039e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4039b5
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x4039e1
push esi
push 0x4d4
push str.c:_agent_work35_swix_srclibsdutil_fileutil.cpp
call fcn.004013b3
jmp 0x4039e1
mov esi, 0x80070003
jmp 0x4039e1
test edi, edi
jg 0x4039d8
mov esi, edi
jmp 0x4039e1
movzx esi, di
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x404143
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor eax, eax
push esi
push edi
mov esi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x40419e
call ebx
mov esi, eax
test esi, esi
jle 0x404187
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x40419e
push esi
push 0x115
push str.c:_agent_work35_swix_srclibsdutil_fileutil.cpp
call fcn.004013b3
jmp 0x404242
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x4041ba
mov esi, 0x8007000e
push esi
push 0x119
jmp 0x40418f
push edi
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4041f4
call ebx
mov esi, eax
test esi, esi
jle 0x4041e0
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x4041f4
push esi
push 0x11d
push str.c:_agent_work35_swix_srclibsdutil_fileutil.cpp
call fcn.004013b3
jmp 0x40423b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x44e564
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x404228
call ebx
mov esi, eax
test esi, esi
jle 0x40421e
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x404228
push esi
push 0x122
jmp 0x4041e8
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [edx + 0xc]
mov dword [ecx], edx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40450a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
and dword [ebp - 4], esi
push edi
xor edi, edi
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, edi
push eax
lea eax, [edi + ebx]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x404551
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40454f
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x40455b
add edi, dword [ebp - 4]
cmp edi, dword [ebp + 0x10]
jb 0x40451b
jmp 0x40456b
push esi
push 0x3ef
push str.c:_agent_work35_swix_srclibsdutil_fileutil.cpp
call fcn.004013b3
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40b7dc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push eax
push dword [edi + 0x14]
push dword [ebp + 0xc]
call fcn.00408ff8
mov esi, eax
test esi, esi
jns 0x40b807
push str.Failed_to_format_variable_string.
jmp 0x40b881
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
cmp edx, 0xffffffff
jne 0x40b842
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40b82c
movzx esi, si
or esi, 0x80070000
cmp esi, 0x80070002
je 0x40b83c
cmp esi, 0x80070003
jne 0x40b83e
xor esi, esi
xor eax, eax
jmp 0x40b84c
xor eax, eax
xor ecx, ecx
test dl, 0x10
je 0x40b84e
inc eax
xor ecx, ecx
test esi, esi
jns 0x40b867
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.0044534a
add esp, 0x10
jmp 0x40b889
push 0
push ecx
push eax
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00409fb1
mov esi, eax
test esi, esi
jns 0x40b889
push str.Failed_to_set_variable.
push esi
call fcn.0044534a
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.00403251
pop edi
mov eax, esi
pop esi
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push eax
push dword [edi + 0x14]
push dword [ebp + 0xc]
call fcn.00408ff8
mov esi, eax
test esi, esi
jns 0x40b8cf
push str.Failed_to_format_variable_string.
push esi
call fcn.0044534a
pop ecx
pop ecx
jmp 0x40b95a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40b8f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40b91a
movzx esi, si
or esi, 0x80070000
jmp 0x40b91a
test al, 0x10
je 0x40b915
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00409f57
mov esi, eax
test esi, esi
jns 0x40b91a
push str.Failed_to_set_directory_search_path_variable.
jmp 0x40b8c2
mov esi, 0x80070003
cmp esi, 0x80070002
je 0x40b943
cmp esi, 0x80070003
je 0x40b943
test esi, esi
jns 0x40b95a
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.0044534a
add esp, 0x10
jmp 0x40b95a
push esi
push dword [ebp - 4]
push dword [edi]
push str.Directory_search:__ls__did_not_find_path:__ls__reason:_0x_x
push 2
call fcn.00445831
add esp, 0x14
xor esi, esi
push dword [ebp - 4]
call fcn.00403251
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x40b96a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push eax
push dword [edi + 0x14]
push dword [ebp + 0xc]
call fcn.00408ff8
mov esi, eax
test esi, esi
jns 0x40b998
push str.Failed_to_format_variable_string.
jmp 0x40ba36
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
cmp edx, 0xffffffff
jne 0x40ba0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x40b9f5
cmp esi, 3
je 0x40b9f5
test esi, esi
je 0x40ba09
jle 0x40b9cb
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x40b9d2
mov esi, 0x80004005
push esi
push 0x28b
push str.c:_agent_work35_swix_src_burnengine_search.cpp
call fcn.004013b3
push dword [edi + 0x14]
push str.Failed_get_to_file_attributes.__ls
push esi
call fcn.0044534a
add esp, 0xc
jmp 0x40ba3e
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.00445831
add esp, 0x10
xor eax, eax
jmp 0x40ba1a
xor eax, eax
xor ecx, ecx
test edx, 0x10
jne 0x40ba1c
inc eax
xor ecx, ecx
push 0
push ecx
push eax
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00409fb1
mov esi, eax
test esi, esi
jns 0x40ba3e
push str.Failed_to_set_variable.
push esi
call fcn.0044534a
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.00403251
pop edi
mov eax, esi
pop esi
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push eax
push dword [edi + 0x14]
push dword [ebp + 0xc]
call fcn.00408ff8
mov esi, eax
test esi, esi
jns 0x40ba84
push str.Failed_to_format_variable_string.
push esi
call fcn.0044534a
pop ecx
pop ecx
jmp 0x40bb07
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40bad0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40baa7
movzx esi, si
or esi, 0x80070000
cmp esi, 0x80070002
je 0x40baf1
cmp esi, 0x80070003
je 0x40baf1
test esi, esi
jns 0x40bb07
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_file_search:__ls__for_path:__ls
push esi
call fcn.0044534a
add esp, 0x10
jmp 0x40bb07
test al, 0x10
jne 0x40baf1
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00409f57
mov esi, eax
test esi, esi
jns 0x40baa7
push str.Failed_to_set_variable_to_file_search_path.
jmp 0x40ba77
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.00445831
add esp, 0x10
xor esi, esi
push dword [ebp - 4]
call fcn.00403251
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x40bf86
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push eax
mov edi, dword [ebx + 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push dword [ebx + 0x1c]
push dword [ebp + 0xc]
call fcn.00408ff8
mov esi, eax
test esi, esi
jns 0x40bfc3
push str.Failed_to_format_key_string.
jmp 0x40c0ca
neg edi
lea eax, [ebp - 0xc]
push eax
sbb edi, edi
and edi, 0x100
inc edi
push edi
push dword [ebp - 4]
push dword [ebx + 0x18]
call fcn.0040582c
mov esi, eax
test esi, esi
jns 0x40c016
push dword [ebp - 4]
cmp esi, 0x80070002
jne 0x40c003
push str.Registry_key_not_found._Key___ls
push 2
call fcn.00445831
add esp, 0xc
jmp 0x40c0ac
push str.Failed_to_open_registry_key._Key___ls
push esi
call fcn.0044534a
add esp, 0xc
jmp 0x40c0d2
xor edi, edi
xor eax, eax
inc edi
cmp dword [ebx + 0x20], eax
je 0x40c0b0
push eax
lea eax, [ebp - 8]
push eax
push dword [ebx + 0x20]
push dword [ebp + 0xc]
call fcn.00408ff8
mov esi, eax
test esi, esi
jns 0x40c044
push str.Failed_to_format_value_string.
jmp 0x40c0ca
xor ecx, ecx
lea eax, [ebp - 0x10]
push ecx
push ecx
push eax
push ecx
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
sub eax, 0
je 0x40c0ae
dec eax
sub eax, 1
je 0x40c097
xor eax, eax
test esi, esi
je 0x40c0b0
jle 0x40c079
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x40c080
mov esi, 0x80004005
push esi
push 0x322
push str.c:_agent_work35_swix_src_burnengine_search.cpp
call fcn.004013b3
push str.Failed_to_query_registry_key_value.
jmp 0x40c0ca
push dword [ebp - 8]
push dword [ebp - 4]
push str.Registry_value_not_found._Key___ls__Value___ls
push 2
call fcn.00445831
add esp, 0x10
xor edi, edi
xor eax, eax
push 0
push eax
push edi
push dword [ebx + 4]
push dword [ebp + 0xc]
call fcn.00409fb1
mov esi, eax
test esi, esi
jns 0x40c0e9
push str.Failed_to_set_variable.
push esi
call fcn.0044534a
pop ecx
pop ecx
test esi, esi
jns 0x40c0e9
push esi
push dword [ebp - 4]
push str.RegistrySearchExists_failed:_ID__ls__HRESULT_0x_x
push 2
call fcn.00445831
add esp, 0x10
push dword [ebp - 4]
call fcn.00403251
push dword [ebp - 8]
call fcn.00403251
cmp dword [ebp - 0xc], 0
je 0x40c108
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x40cf14
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x40cf68
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x40cf3f
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x40cf46
mov edi, 0x80004005
push edi
push 0x140
push str.c:_agent_work35_swix_src_burnengine_section.cpp
call fcn.004013b3
push str.Failed_to_get_module_handle_to_process.
push edi
call fcn.0044534a
pop ecx
pop ecx
jmp 0x40d0b5
mov eax, 0x5a4d
cmp ax, word [esi]
je 0x40cf91
mov esi, 0x8007000d
push esi
push 0x14a
push str.c:_agent_work35_swix_src_burnengine_section.cpp
mov edi, esi
call fcn.004013b3
push str.Failed_to_find_valid_DOS_image_header_in_buffer.
push esi
jmp 0x40cf5c
mov ecx, dword [esi + 0x3c]
cmp dword [ecx + esi], 0x4550
je 0x40cfbb
mov esi, 0x8007000d
push esi
push 0x155
push str.c:_agent_work35_swix_src_burnengine_section.cpp
mov edi, esi
call fcn.004013b3
push str.Failed_to_find_valid_NT_image_header_in_buffer.
jmp 0x40cf8e
movzx eax, word [ecx + esi + 0x14]
push ebx
add eax, ecx
lea ebx, [esi + 0x18]
push 8
add ebx, eax
push 0x452394
push ebx
call fcn.00431bbd
add esp, 0xc
test eax, eax
je 0x40d000
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 6]
xor eax, eax
inc eax
cmp eax, ecx
jae 0x40d027
add ebx, 0x28
inc eax
cmp dword [ebx], 0x7869772e
jne 0x40cfe7
cmp dword [ebx + 4], 0x6e727562
jne 0x40cfe7
cmp dword [ebx + 0x10], 0x34
jae 0x40d045
mov esi, 0x8007000d
push esi
push 0x17a
push str.c:_agent_work35_swix_src_burnengine_section.cpp
mov edi, esi
call fcn.004013b3
push dword [ebx + 0x10]
push str.Failed_to_read_section_info__data_to_short:__u
jmp 0x40d06f
mov esi, 0x8007000d
push esi
push 0x16e
push str.c:_agent_work35_swix_src_burnengine_section.cpp
mov edi, esi
call fcn.004013b3
push str.Failed_to_find_Burn_section.
jmp 0x40d0ac
mov ebx, dword [ebx + 0xc]
add ebx, esi
cmp dword [ebx + 4], 2
je 0x40d07a
mov esi, 0x8007000d
push esi
push 0x184
push str.c:_agent_work35_swix_src_burnengine_section.cpp
mov edi, esi
call fcn.004013b3
push dword [ebx + 4]
push str.Failed_to_read_section_info__unsupported_version:__08x
push esi
call fcn.0044534a
add esp, 0xc
jmp 0x40d0b4
mov edx, dword [ebp + 8]
mov ecx, edi
mov eax, dword [edx + ecx*4]
cmp eax, dword [ebx + ecx*4 + 8]
jne 0x40d090
inc ecx
cmp ecx, 4
jne 0x40d07f
jmp 0x40d0b4
mov esi, 0x8007000d
push esi
push 0x18a
push str.c:_agent_work35_swix_src_burnengine_section.cpp
mov edi, esi
call fcn.004013b3
push str.Bundle_guid_didnt_match_the_guid_in_the_PE_Header_in_memory.
push esi
call fcn.0044534a
pop ecx
pop ecx
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret 4