joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418dca
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
mov eax, 0x20000004
push esi
push edi
mov edi, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
cmp dword [ebp + 8], ebx
je 0x418e5c
lea eax, [ebp - 4]
push eax
push 0x1a
call fcn.004181fd
mov esi, eax
test esi, esi
jns 0x418e0d
push str.Failed_to_allocate_administrator_SID.
push esi
call fcn.0044311f
mov edi, dword [ebp - 4]
pop ecx
pop ecx
jmp 0x418e85
push 2
push 8
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x418e54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x418e36
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x418e3d
mov esi, 0x80004005
push esi
push 0x601
push str.c:_agent_work13_s_src_burnenginecache.cpp
call fcn.004038f5
push str.Failed_to_initialize_ACL.
jmp 0x418e00
mov edi, dword [ebp - 4]
mov eax, 0x20000005
push 0x7d0
push 3
push ebx
lea ecx, [ebp - 0xc]
push ecx
push ebx
push edi
push eax
push 1
push dword [ebp + 0xc]
call fcn.00448523
push 0x80
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test edi, edi
je 0x418e8f
push edi
call fcn.00403adf
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x419b24
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x46e008]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x250
push eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x254]
push eax
call fcn.0042f710
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push str..unverified
push dword [ebp + 8]
call fcn.0041a380
test eax, eax
js 0x419b85
push 7
push dword [ebp - 0x258]
call fcn.00403d89
cmp dword [ebp + 8], 0
jne 0x419c6c
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 0xc]
call fcn.004182a6
test eax, eax
js 0x419c6c
lea eax, [ebp - 0x260]
push eax
push 0x44e8e8
push dword [ebp - 0x258]
call fcn.00402e80
test eax, eax
js 0x419c6c
push esi
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x419c6b
test byte [ebp - 0x254], 0x10
jne 0x419c52
xor eax, eax
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jbe 0x419c2a
push 0x2e
pop ecx
cmp cx, word [ebp + eax*2 - 0x22c]
jne 0x419c2a
movzx eax, word [ebp + eax*2 - 0x22a]
push 0x52
pop ecx
cmp cx, ax
je 0x419c52
push 0x72
pop ecx
cmp cx, ax
je 0x419c52
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x258]
call fcn.00402e80
test eax, eax
js 0x419c52
push dword [ebp - 0x25c]
call fcn.00447065
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x419be4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
cmp dword [ebp - 0x25c], 0
je 0x419c80
push dword [ebp - 0x25c]
call fcn.0040278d
cmp dword [ebp - 0x260], 0
je 0x419c94
push dword [ebp - 0x260]
call fcn.0040278d
cmp dword [ebp - 0x258], 0
je 0x419ca8
push dword [ebp - 0x258]
call fcn.0040278d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042de30
leave
ret 8
Function at 0x41d1eb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x2c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x30]
push esi
mov esi, dword [ebp + 0x28]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x34]
push edi
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x60], ecx
xor ecx, ecx
push ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x1c]
push ecx
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x34]
push eax
push 0x41ad19
push ecx
push ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x41d2c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x41d29a
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x41d2a1
mov esi, 0x80004005
push esi
push 0x465
push str.c:_agent_work13_s_src_burnengineelevation.cpp
call fcn.004038f5
push str.Failed_to_create_elevated_cache_thread.
push esi
call fcn.0044311f
pop ecx
pop ecx
jmp 0x41d30a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x60]
push eax
push 0x41c779
push dword [ebp + 0xc]
call fcn.00415222
mov esi, eax
test esi, esi
jns 0x41d2ea
push str.Failed_to_pump_messages_in_child_process.
push esi
call fcn.0044311f
pop ecx
pop ecx
jmp 0x41d303
push dword [ebp - 8]
push edi
call fcn.0041cecf
mov ecx, dword [ebp + 0x38]
mov eax, dword [ebp - 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x3c]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x38
Function at 0x41e5b5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
push edi
push edi
push 1
push edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x41e61d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x41e5fa
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x41e601
mov esi, 0x80004005
push esi
push 0x39
push str.c:_agent_work13_s_src_burnengine_splashscreen.cpp
call fcn.004038f5
push str.Failed_to_create_modal_event.
push esi
call fcn.0044311f
pop ecx
pop ecx
jmp 0x41e690
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push 0x41e33a
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
test eax, eax
jne 0x41e681
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x41e666
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x41e66d
mov esi, 0x80004005
push esi
push 0x42
push str.c:_agent_work13_s_src_burnengine_splashscreen.cpp
call fcn.004038f5
push str.Failed_to_create_UI_thread.
jmp 0x41e613
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], edi
je 0x41e6a3
push dword [ebp - 8]
call esi
mov dword [ebp - 8], edi
cmp dword [ebp - 0xc], edi
je 0x41e6ad
push dword [ebp - 0xc]
call esi
pop edi
pop esi
leave
ret 0xc
Function at 0x41e9e2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
lea edi, [ebp - 0x14]
xor eax, eax
mov dword [ebp - 8], ebx
stosd dword es:[edi], eax
mov esi, ebx
push ebx
push ebx
push 1
stosd dword es:[edi], eax
push ebx
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x41ea4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x41ea26
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x41ea2d
mov esi, 0x80004005
push esi
push 0x33
push str.c:_agent_work13_s_src_burnengineuithread.cpp
call fcn.004038f5
push str.Failed_to_create_initialization_event.
push esi
call fcn.0044311f
mov eax, dword [ebp - 4]
pop ecx
pop ecx
jmp 0x41eac4
mov edi, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0x41e720
push ebx
push ebx
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
test eax, eax
jne 0x41eaa7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x41ea8c
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x41ea93
mov esi, 0x80004005
push esi
push 0x3c
push str.c:_agent_work13_s_src_burnengineuithread.cpp
call fcn.004038f5
push str.Failed_to_create_the_UI_thread.
jmp 0x41ea3f
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [ebp - 4]
mov dword [edi + 0x3e4], eax
mov eax, ebx
mov dword [ebp - 4], eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41ead4
push eax
call edi
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
je 0x41eade
push dword [ebp - 8]
call edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x4215f7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
or dword [edi + 0x3c], 0xffffffff
lea eax, [edi + 0x1c]
push eax
call fcn.004022c9
mov esi, eax
test esi, esi
jns 0x421623
push str.Failed_to_copy_file_name.
jmp 0x42170f
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
call esi
mov dword [edi + 0x24], eax
test eax, eax
jne 0x42166f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x42164e
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x421655
mov esi, 0x80004005
push esi
push 0x8c
push str.c:_agent_work13_s_src_burnenginecabextract.cpp
call fcn.004038f5
push str.Failed_to_create_begin_operation_event.
jmp 0x42170f
push ebx
push ebx
push 1
push ebx
call esi
mov dword [edi + 0x28], eax
test eax, eax
jne 0x4216b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x421694
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x42169b
mov esi, 0x80004005
push esi
push 0x8f
push str.c:_agent_work13_s_src_burnenginecabextract.cpp
call fcn.004038f5
push str.Failed_to_create_operation_complete_event.
jmp 0x42170f
push ebx
push ebx
push edi
push 0x420fb4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x20], eax
test eax, eax
jne 0x4216fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4216e0
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4216e7
mov esi, 0x80004005
push esi
push 0x93
push str.c:_agent_work13_s_src_burnenginecabextract.cpp
call fcn.004038f5
push str.Failed_to_create_extraction_thread.
jmp 0x42170f
push edi
call fcn.0042139a
mov esi, eax
test esi, esi
jns 0x421717
push str.Failed_to_wait_for_operation_complete.
push esi
call fcn.0044311f
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x426a65
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x46e008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 7
pop ecx
lea edi, [ebp - 0x20]
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x426ad2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x426aae
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x426ab5
mov esi, 0x80004005
push esi
push 0x1fc
push str.c:_agent_work13_s_src_burnenginemsuengine.cpp
call fcn.004038f5
push str.Failed_to_stop_wusa_service.
push esi
call fcn.0044311f
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042de30
leave
ret 4
Function at 0x429ac7
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov eax, dword [ebx + 4]
mov edi, 0x44e534
mov dword [ebp - 4], esi
test eax, eax
je 0x429ae6
mov edx, dword [eax]
jmp 0x429af3
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x429af1
mov edx, dword [ecx]
jmp 0x429af3
mov edx, edi
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x429afc
mov edi, dword [ecx]
test eax, eax
je 0x429b0e
xor eax, eax
test ecx, ecx
setne al
add eax, 0x20000150
jmp 0x429b1d
mov eax, dword [ebx + 8]
neg eax
sbb eax, eax
and eax, 3
add eax, 0x2000014f
push dword [ebp + 0xc]
push str.copy
push edi
push edx
push eax
push 2
call fcn.00405678
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 4]
add esp, 0x18
push eax
push edi
call fcn.00447353
test eax, eax
je 0x429b9b
mov eax, dword [ebp - 4]
test al, 1
je 0x429b9b
and eax, 0xfffffffe
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x429b9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x429b73
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x429b7a
mov esi, 0x80004005
push esi
push 0x538
push str.c:_agent_work13_s_src_burnengine_apply.cpp
call fcn.004038f5
push edi
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call fcn.0044311f
add esp, 0xc
jmp 0x429c19
push esi
lea eax, [ebx + 0x20]
push eax
push ebx
push fcn.004299a0
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x429c19
cmp dword [ebx + 0x20], esi
je 0x429bd9
mov esi, 0x80070642
push esi
push 0x542
push str.c:_agent_work13_s_src_burnengine_apply.cpp
call fcn.004038f5
push edi
push dword [ebp + 0xc]
push str.BA_aborted_copy_of_payload_from:__ls_to:__ls.
jmp 0x429c10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x429bf0
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x429bf7
mov esi, 0x80004005
push esi
push 0x546
push str.c:_agent_work13_s_src_burnengine_apply.cpp
call fcn.004038f5
push edi
push dword [ebp + 0xc]
push str.Failed_attempt_to_copy_payload_from:__ls_to:__ls.
push esi
call fcn.0044311f
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x439f46
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x46e008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x439f91
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0043a0e5
test al, al
jne 0x439f8b
sub edx, 2
cmp edx, edi
jne 0x439f71
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x439fb3
lea eax, [edi + 2]
cmp edx, eax
je 0x439fb3
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00439e92
add esp, 0x10
jmp 0x43a0ad
push esi
lea ecx, [ebp - 0x255]
call fcn.0043a0e5
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x439ff6
push dword [ebp - 0x25c]
jmp 0x439fa3
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x43a033
cmp word [ebp - 0x226], 0
je 0x43a054
cmp word [ebp - 0x226], ax
jne 0x43a033
cmp word [ebp - 0x224], 0
je 0x43a054
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00439e92
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43a0a0
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x43a00d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x43a088
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x43a0ad
push 0x439cc2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0043e5d0
add esp, 0x10
jmp 0x43a07d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042de30
leave
ret

Function at 0x43b88c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46633c
push 0x466334
push str.FlsAlloc
push 0x1e
call fcn.0043b7c9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43b8c0
push dword [ebp + 8]
mov ecx, esi
call dword [0x44e3d4]
call esi
jmp 0x43b8c6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43b90a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46634c
push 0x466344
push str.FlsGetValue
push 0x20
call fcn.0043b7c9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43b941
push dword [ebp + 8]
mov ecx, esi
call dword [0x44e3d4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x442b91
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46f6f0
push str.AdvApi32.dll
call fcn.004038f8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x442bd4
push str.SystemFunction040
push dword [0x46f6f0]
call edi
push str.SystemFunction041
push dword [0x46f6f0]
mov dword [0x46f6e0], eax
call edi
mov dword [0x46f6e4], eax
jmp 0x442bd9
mov eax, dword [0x46f6e4]
cmp dword [0x46f6e0], 0
je 0x442bea
test eax, eax
jne 0x442c91
push 0x46f6f4
push str.Crypt32.dll
call fcn.004038f8
mov esi, eax
test esi, esi
js 0x442c9b
push str.CryptProtectMemory
push dword [0x46f6f4]
call edi
cmp dword [0x46f6e0], 0
mov dword [0x46f6e8], eax
jne 0x442c4f
test eax, eax
jne 0x442c4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x442c39
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x442c40
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work13_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x442c9b
push str.CryptUnprotectMemory
push dword [0x46f6f4]
call edi
cmp dword [0x46f6e4], 0
mov dword [0x46f6ec], eax
jne 0x442c91
test eax, eax
jne 0x442c91
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x442c85
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x442c8c
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x442c43
mov dword [0x46f6f8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x4431dc
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x46e008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [str.unknown]
mov eax, 0x104
push edi
push eax
mov dword [ebp - 0x424], eax
xor ebx, ebx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x420], ebx
push eax
push ebx
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x418], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, 0x208
test eax, eax
jne 0x443240
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0042f710
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0044796a
test eax, eax
jns 0x44326a
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x41c], ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x443290
lea eax, [ebp - 0x414]
mov byte [eax], bl
inc eax
sub edi, 1
jne 0x443288
push ebx
lea eax, [ebp - 0x418]
push eax
call fcn.0044b581
push dword [ebp - 0x418]
push str._Logging_started:__ls_
push 2
pop edi
push edi
call fcn.00443606
mov ecx, dword [ebp - 0x41c]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x420]
movzx eax, cx
push eax
shr ecx, 0x10
lea eax, [ebp - 0x20c]
push ecx
push eax
push str.Executable:__ls_v_d._d._d._d
push edi
call fcn.00443606
lea eax, [ebp - 0x414]
push eax
push str.Computer__:__ls
push edi
call fcn.00443606
mov eax, dword [0x46e878]
add esp, 0x34
sub eax, ebx
je 0x443331
sub eax, 1
je 0x443329
sub eax, 1
je 0x443321
sub eax, 1
je 0x443319
sub eax, 1
jne 0x443337
mov esi, dword [str.debug]
jmp 0x443337
mov esi, dword [str.verbose]
jmp 0x443337
mov esi, dword [str.standard]
jmp 0x443337
mov esi, dword [str.warning]
jmp 0x443337
mov esi, dword [str.none]
push esi
push str.____logging_level:__hs____
push edi
call fcn.00443606
add esp, 0xc
cmp dword [ebp - 0x418], 0
pop edi
pop esi
pop ebx
je 0x44335d
push dword [ebp - 0x418]
call fcn.0040278d
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0042de30
leave
ret

Function at 0x443644
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
xor edi, edi
and dword [ebp - 4], esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [0x46e874]
mov dword [ebp + 8], eax
cmp ecx, 0xffffffff
jne 0x443680
push edi
push ebx
push 0x46f708
call fcn.004024a9
mov esi, eax
test esi, esi
js 0x4436d7
xor esi, esi
jmp 0x4436d7
test eax, eax
je 0x4436d7
push 0
lea edx, [ebp - 4]
sub eax, edi
push edx
push eax
lea eax, [edi + ebx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4436b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4436b3
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4436c7
add edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
cmp edi, eax
jae 0x4436d7
mov ecx, dword [0x46e874]
jmp 0x443684
push esi
push 0x310
push str.c:_agent_work13_s_srclibsdutillogutil.cpp
call fcn.004038f5
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4