joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Get file size
Get system information on windows
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401181
lea edx, [ebp - 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40117a
cmp dword [ebp - 0xc], 0
jne 0x40117a
push ebx
mov ebx, dword [ebp - 0x10]
push esi
cmp ebx, dword [ebp - 0x18]
jae 0x4010fa
push ebx
call fcn.00444770
mov esi, eax
add esp, 4
test esi, esi
je 0x4010e9
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4010e0
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 8]
jne 0x4010e0
push 0x10
call fcn.00444804
add esp, 4
test eax, eax
je 0x4010ca
mov ecx, dword [ebp - 0x10]
add ecx, esi
push edi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov dword [eax], vtable.LanAgent::laTempReader.0
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call fcn.004448e0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x401121
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x401165
push 0x18
call fcn.00444804
add esp, 4
test eax, eax
je 0x401118
mov ecx, dword [ebp - 0x10]
add ecx, esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
pop esi
mov dword [eax + 0x14], ebx
pop ebx
mov dword [eax + 0x10], edi
mov dword [eax], vtable.LanAgent::laMMapReader.0
mov dword [eax + 0xc], ecx
pop edi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x401250
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [eax + 0x14], 8
jb 0x40125c
mov eax, dword [eax]
push ebx
push esi
push edi
push eax
call fcn.0044491a
mov esi, eax
add esp, 4
cmp word [esi], 0
mov byte [ebp - 1], 0
mov edi, esi
je 0x4012c4
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea esp, [esp]
cmp word [edi], 0x5c
jne 0x4012bb
xor eax, eax
push esi
mov word [edi], ax
call ebx
cmp eax, 0xffffffff
jne 0x4012af
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4012b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4012e6
jmp 0x4012b3
test al, 0x10
je 0x4012e6
mov ecx, 0x5c
mov word [edi], cx
add edi, 2
cmp word [edi], 0
jne 0x401280
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4012e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 1], 0
cmp eax, 0xb7
jne 0x4012e6
mov byte [ebp - 1], 1
push esi
call fcn.004448e0
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401680
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e290
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x473b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x24c
lea eax, [ebp - 0x294]
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x298], 0
call fcn.00449a10
lea ecx, [ebp - 0x2c]
push ecx
mov ebx, esi
call fcn.004034d0
add esp, 0x10
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4016eb
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
cmp word [eax + edx*2 - 2], 0x5c
je 0x401702
push 0x5c
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403810
cmp dword [esi + 0x14], 8
jb 0x40170a
mov esi, dword [esi]
lea eax, [ebp - 0x298]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x29c], eax
cmp eax, 0xffffffff
jne 0x401740
cmp dword [ebp - 0x18], 8
jb 0x401735
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00444884
add esp, 4
xor al, al
jmp 0x401882
mov ecx, 0x465b0c
lea eax, [ebp - 0x26c]
jmp 0x401750
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401776
cmp dx, bx
je 0x401772
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401776
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x401750
xor eax, eax
jmp 0x40177b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40184b
mov ecx, 0x465b78
lea eax, [ebp - 0x26c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4017b6
cmp dx, bx
je 0x4017b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4017b6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x401790
xor eax, eax
jmp 0x4017bb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40184b
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c]
xor edx, edx
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
call fcn.00403e20
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 1
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4017f0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x26c]
lea esi, [ebp - 0x48]
call fcn.004032b0
mov esi, dword [edi]
mov ecx, dword [esi + 4]
push eax
push ecx
push esi
call fcn.00402460
mov ecx, dword [edi + 4]
mov edx, 0x9249248
sub edx, ecx
cmp edx, 1
jb 0x40189d
inc ecx
mov dword [edi + 4], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], 8
jb 0x40184b
mov eax, dword [ebp - 0x48]
push eax
call fcn.00444884
add esp, 4
mov esi, dword [ebp - 0x29c]
lea ecx, [ebp - 0x298]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401740
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x18], 8
jb 0x401880
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00444884
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00444627
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.0042fef6
int3
Function at 0x401eb0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [eax + 0x14], 8
push esi
push edi
jb 0x401ec0
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401ee8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x401f01
cmp dword [ebp - 4], edi
jne 0x401f01
mov edi, dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4042b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push eax
push eax
push 1
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 4], eax
test eax, eax
je 0x404337
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push 0
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4042fc
mov al, 1
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40432d
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
push 1
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
jne 0x404326
cmp dword [ebp - 0x14], 0xc000014b
jne 0x4042f6
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x404340
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor edi, edi
push edi
push edi
xor eax, eax
push 1
push edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x404376
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push edx
push eax
push esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4043ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x4043ab
cmp eax, 0x3e5
jne 0x40436f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push edi
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x18]
push edx
push esi
call ebx
test eax, eax
jne 0x404403
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x404403
cmp eax, 0x3e4
jne 0x404428
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
jne 0x404417
cmp dword [ebp - 0x18], 0xc000014b
je 0x404417
push edi
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x18]
push eax
push esi
call ebx
test eax, eax
je 0x4043c2
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x40440f
mov edx, dword [ebp - 4]
mov dword [eax], edx
pop ebx
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4049e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push 0x3e8
xor ebx, ebx
push 0x465c30
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
push ebx
push 0x40000000
push 3
push ebx
push ebx
push 0x10000000
push 0x465c30
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x404b2d
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x404b2d
push 0x1000
push ebx
push eax
mov dword [ebp - 8], ebx
call fcn.00449a10
mov eax, dword [edi + 0x10]
push eax
push edi
push eax
mov eax, dword [esi + 4]
push eax
call fcn.00444f59
add esp, 0x1c
push ebx
push ebx
xor eax, eax
push 1
push ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x404b16
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [esi]
lea edx, [ebp - 8]
push edx
push 0x1000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0xc]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x404b0c
mov eax, dword [ebp - 0xc]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [esi]
lea edx, [ebp - 8]
push edx
push 0x1000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0xc]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x404b0c
mov eax, dword [edi + 0x10]
mov ecx, dword [esi + 4]
push eax
push ecx
push eax
push edi
call fcn.00444f59
mov edx, dword [esi + 4]
push 0x1000
push ebx
push edx
call fcn.00449a10
add esp, 0x1c
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [esi], 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4055b0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45eaee
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x473b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, 7
xor ebx, ebx
xor edx, edx
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], ecx
mov word [esi], dx
lea edi, [esi + 0x1c]
mov dword [ebp - 4], ebx
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [edi + 0x10], ebx
mov word [edi], ax
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
lea eax, [esi + 0x4c]
mov byte [ebp - 4], 2
push eax
mov dword [0x477bb8], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebp - 0x3c]
push 0xffffffffffffffff
push ebx
push ecx
mov ecx, esi
mov dword [esi + 0x38], 2
call fcn.00403e20
xor eax, eax
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x30]
xor edx, edx
push ecx
mov dword [ebp - 0x38], 0x10
mov word [ebp - 0x30], dx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x40569d
lea eax, [ebp - 0x30]
lea edx, [eax + 2]
jmp 0x405680
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405680
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x30]
push edx
mov ecx, edi
call fcn.00403570
jmp 0x4056ad
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x4056a8
mov edi, dword [edi]
xor eax, eax
mov word [edi], ax
mov ecx, dword [ebp - 0x34]
push ecx
push esi
call fcn.004057f0
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esi + 0x40]
mov edi, dword [esi + 0x3c]
cmp edi, ebx
je 0x4056de
jmp 0x4056d0
mov ecx, dword [edi]
call fcn.00406210
add edi, 4
cmp edi, ebx
jne 0x4056d0
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00444627
mov esp, ebp
pop ebp
ret 4
Function at 0x405d80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ddc1
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x473b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
fld qword [edi]
push 0xffffffffffffffff
fstp qword [esi]
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0xc], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x14]
xor ebx, ebx
push ebx
lea edx, [edi + 0x14]
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push edx
mov word [ecx], ax
call fcn.00403e20
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
mov dword [ebp - 4], ebx
push ebx
lea edx, [edi + 0x30]
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push edx
mov word [ecx], ax
call fcn.00403e20
push 0xffffffffffffffff
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
push ebx
lea edx, [edi + 0x4c]
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push edx
mov word [ecx], ax
call fcn.00403e20
push 0xffffffffffffffff
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
push ebx
lea edx, [edi + 0x68]
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push edx
mov word [ecx], ax
call fcn.00403e20
mov eax, dword [edi + 0x84]
mov dword [esi + 0x84], eax
mov ecx, dword [edi + 0x88]
mov dword [esi + 0x88], ecx
mov edx, dword [edi + 0x8c]
mov dword [esi + 0x8c], edx
mov eax, dword [edi + 0x90]
mov dword [esi + 0x90], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406210
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x2c], 0
jne 0x40624b
push edi
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0
push esi
push 0x406c40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x28], eax
test eax, eax
je 0x406243
mov byte [esi + 0x2c], 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
push esi
call fcn.004069b0
pop esi
ret
Function at 0x407480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x18
mov edi, ecx
call fcn.00444804
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x4074b1
mov dword [eax], vtable.LanAgent::Logging::laMemoryWriter.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x14], ebx
mov esi, eax
jmp 0x4074b3
xor esi, esi
mov ecx, dword [ebp + 8]
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push esi
push ecx
mov ecx, edi
mov dword [ebp - 4], ebx
call edx
push ebx
lea edx, [ebp - 8]
push edx
mov dword [ebp - 8], eax
mov ecx, dword [esi + 4]
push eax
mov eax, dword [edi + 0x10c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4074eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov ecx, dword [edi + 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [esi], vtable.LanAgent::Logging::laMemoryWriter.0
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40750e
push eax
call fcn.00444884
add esp, 4
push esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.00444884
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a9f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d1ab
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x473b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00430723
push 4
mov dword [ebp - 4], 0
call fcn.00444804
mov edi, eax
add esp, 4
test edi, edi
je 0x40aa6c
call fcn.004305f2
mov dword [edi], eax
call fcn.004304ac
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004303e1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40aa62
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00430409
jmp 0x40aa6e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40ea10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0x104
push esi
call fcn.0044574a
mov ecx, dword [edi + 0x208]
add esp, 8
add eax, eax
push eax
mov eax, dword [ebp + 8]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edx, edx
test eax, eax
mov dword [edi + 0x218], eax
sete al
pop ebp
ret 4
Function at 0x40ea90
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x473b80]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.00449a10
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40eae2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444627
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x110]
push ebx
mov ebx, 1
sub eax, ebx
je case.default.0x40eb10
sub eax, ebx
jne case.default.0x40eb10
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x40eb10
jmp dword [eax*4 + 0x40ecd0]
mov eax, dword [ebp - 0x118]
sub eax, ebx
je 0x40eb57
sub eax, 4
je 0x40eb43
sub eax, 0x2e
jne case.default.0x40eb10
mov eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444627
mov esp, ebp
pop ebp
ret
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444627
mov esp, ebp
pop ebp
ret
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444627
mov esp, ebp
pop ebp
ret
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444627
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x118]
sub eax, 0
je 0x40ec49
sub eax, ebx
je 0x40ec35
sub eax, ebx
jne case.default.0x40eb10
lea edx, [ebp - 0x144]
push edx
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x144], eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x40ebfe
mov eax, 9
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444627
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x144], 0
je 0x40ec21
cmp byte [ebp - 6], bl
jne 0x40ec21
mov eax, 8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444627
mov esp, ebp
pop ebp
ret
mov eax, 7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444627
mov esp, ebp
pop ebp
ret
mov eax, 6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444627
mov esp, ebp
pop ebp
ret
mov eax, 5
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444627
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x118]
sub eax, 0
je 0x40eca3
sub eax, ebx
je 0x40ec89
sub eax, ebx
jne case.default.0x40eb10
cmp byte [ebp - 6], bl
pop ebx
setne al
lea eax, [eax + eax + 0xe]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444627
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp byte [ebp - 6], bl
pop ebx
setne al
add eax, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444627
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp byte [ebp - 6], bl
pop ebx
setne al
add eax, 0xa
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444627
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00444627
mov esp, ebp
pop ebp
ret