joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4782d8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b91d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0046f3b8
and dword [ebp - 0x14], 0
cmp dword [0x4c10f8], 0
mov dword [ebp - 0x18], eax
jne 0x47838b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x478433
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x498ed4
push ebx
call edi
test eax, eax
je 0x478433
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4c10f8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4c10fc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4c1100], eax
call edi
push eax
call esi
mov dword [0x4c1108], eax
test eax, eax
je 0x47838b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4c1104], eax
mov eax, dword [0x4c1104]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4783e4
cmp dword [0x4c1108], ecx
je 0x4783e4
push eax
call esi
push dword [0x4c1108]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4783e4
test ebx, ebx
je 0x4783e4
call edi
test eax, eax
je 0x4783db
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4783db
test byte [ebp - 8], 1
jne 0x4783e4
or dword [ebp + 0x10], 0x200000
jmp 0x478417
mov eax, dword [0x4c10fc]
cmp eax, dword [ebp - 0x18]
je 0x478417
push eax
call esi
test eax, eax
je 0x478417
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x478417
mov eax, dword [0x4c1100]
cmp eax, dword [ebp - 0x18]
je 0x478417
push eax
call esi
test eax, eax
je 0x478417
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4c10f8]
call esi
test eax, eax
je 0x478433
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x478435
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004653d5
leave
ret
Function at 0x47fb90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4842d0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4b91d0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b91d0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [0x4ba6bc]
cmp eax, 0xffffffff
jne 0x47fbd0
xor esi, esi
jmp 0x47fbd9
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x18], esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x58], 0
test esi, esi
je 0x47fc2d
nop
cmp dword [esi + 0x14], 0
jne 0x47fc7a
cmp dword [esi + 0x10], 0
jne 0x47fc80
push 0x47f200
push 0x4c1124
call fcn.0047f480
mov eax, dword [0x4ba6bc]
add esp, 8
cmp eax, 0xffffffff
je 0x47fd31
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x58], 0xffffffff
test esi, esi
je 0x47fc5b
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x47fc5b
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004653d5
add esp, 0x48
ret
cmp dword [esi + 0x10], 0
je 0x47fcc2
mov ebp, dword [esi + 0x10]
mov eax, dword [ebp + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebp]
test ecx, ecx
je 0x47fcb0
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
cmp dword [esi + 0x10], 0
jne 0x47fc80
cmp dword [esi + 0x14], 0
je 0x47fbfa
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x47fce7
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebp, dword [edi + 8]
test ebp, ebp
je 0x47fd1a
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x47fd1a
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
call eax
lea ecx, [ebp + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x47fd1a
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
cmp dword [esi + 0x14], 0
jne 0x47fccc
jmp 0x47fbf0
call fcn.00480b30
mov esi, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
mov edi, 0xb
mov dword [esp + 0x18], str.boost::thread_resource_error
call fcn.004659d5
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
mov dword [esp + 0x1c], vtable.boost::thread_resource_error.0
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x5c], 1
call fcn.00405ad0
int3
Function at 0x47fe80
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x484338
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4b91d0]
xor eax, esp
mov dword [esp + 0x34], eax
push ebp
push esi
push edi
mov eax, dword [0x4b91d0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x47fd90
push 0
push 0
call fcn.004660b2
mov ebp, eax
add esp, 0x18
test ebp, ebp
jne 0x47ff22
call fcn.00480b30
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
mov esi, eax
lea edi, [ebp + 0xb]
mov dword [esp + 0x14], str.boost::thread_resource_error
call fcn.004659d5
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebp
mov byte [esp + 0x28], 0
mov dword [esp + 0x14], vtable.boost::thread_resource_error.0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x54], ebp
call fcn.00405ad0
mov ecx, dword [esi]
add ecx, 4
mov edx, 1
lock xadd dword [ecx], edx
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x47ff45
cmp eax, 0xffffffff
je 0x47ff45
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebp
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004653d5
add esp, 0x44
ret
Function at 0x401000
Capabilities:
Create directory

Disassembly:
sub esp, 0x350
mov eax, dword [0x412158]
push ebx
push ebp
push esi
mov esi, edx
lea edx, [esp + 0x114]
mov dword [esp + 0x358], eax
push edi
mov ebx, ecx
mov dword [esp + 0x10], 0
mov eax, esi
sub edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401030
lea edi, [esp + 0x118]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401042
mov ax, word [0x40f1e8]
lea ecx, [esp + 0x21c]
push ecx
lea edx, [esp + 0x11c]
push edx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edx, eax
cmp edx, 0xffffffff
je 0x401169
mov byte [esp + 0x14], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x15]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x14]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401098
push 0x5c
push ebx
mov edi, ebx
call fcn.00407515
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
add esp, 8
test esi, esi
je 0x40111a
jmp 0x4010c0
lea eax, [esp + 0x14]
mov ebx, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4010d0
mov ecx, esi
sub ecx, edi
push ecx
sub eax, edx
lea edx, [esp + eax + 0x18]
push edi
push edx
call fcn.00407590
add esp, 0xc
push 0
lea eax, [esp + 0x18]
push eax
mov edi, esi
call ebp
test eax, eax
jne 0x401108
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401184
push 0x5c
inc esi
push esi
call fcn.00407515
mov esi, eax
add esp, 8
test esi, esi
jne 0x4010c0
mov eax, ebx
mov edx, ebx
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401120
lea edi, [esp + 0x14]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401130
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [esp + 0x18]
push ecx
call ebp
test eax, eax
jne 0x401169
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34c]
call fcn.004076bf
add esp, 0x350
ret
mov ecx, dword [esp + 0x35c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
call fcn.004076bf
add esp, 0x350
ret
Function at 0x4015f0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
sub esp, 0x88
mov eax, dword [0x412158]
mov dword [esp + 0x84], eax
lea eax, [esp]
push eax
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4016b9
mov ecx, dword [str.LdmsRemoveTempDir]
mov edx, dword [0x40f1f8]
mov eax, dword [0x40f1fc]
mov dword [esp + 4], ecx
mov ecx, dword [0x40f200]
mov dword [esp + 8], edx
mov dx, word [0x40f204]
mov dword [esp + 0xc], eax
push edi
mov dword [esp + 0x14], ecx
xor eax, eax
mov word [esp + 0x18], dx
mov ecx, 0x1b
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov al, byte [0x413100]
test al, al
je 0x40169d
mov eax, 0x413100
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401675
lea edi, [esp + 8]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401683
push esi
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [esp + 0x84]
call fcn.004076bf
add esp, 0x88
ret
Function at 0x4016d0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x258
mov eax, dword [0x412158]
mov ecx, dword [0x40f1f8]
mov edx, dword [0x40f1fc]
mov dword [esp + 0x254], eax
mov eax, dword [str.LdmsRemoveTempDir]
mov dword [esp + 8], eax
mov eax, dword [0x40f200]
mov dword [esp + 0xc], ecx
mov cx, word [0x40f204]
push esi
push edi
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], cx
mov dword [esp + 0x18], edx
xor eax, eax
mov ecx, 0x1b
lea edi, [esp + 0x22]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x1c8]
push edx
mov dword [esp + 0xc], 0
stosw word es:[edi], ax
mov dword [esp + 0x10], 0
mov dword [esp + 0x1cc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x1d8], 2
jne 0x4017a6
mov eax, dword [str.cmd.exe__C_RD__S__Q]
mov ecx, dword [0x40f260]
mov edx, dword [0x40f264]
mov dword [esp + 0x90], eax
mov eax, dword [0x40f268]
mov dword [esp + 0x94], ecx
mov ecx, dword [0x40f26c]
mov dword [esp + 0x98], edx
mov dl, byte [0x40f270]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
mov byte [esp + 0xa4], dl
jmp 0x4017bc
mov ecx, 7
mov esi, str.COMMAND.COM__C_DELTREE.EXE__Y
lea edi, [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x264]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4017c5
lea edi, [esp + 0x90]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4017d6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x90]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4017f8
sub eax, edx
mov byte [esp + eax + 0x8f], cl
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [esp + 8]
test eax, eax
je 0x4018a4
mov al, byte [0x413100]
test al, al
je 0x40186d
mov eax, 0x413100
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401847
lea edi, [esp + 0x10]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401855
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [esp + 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 8]
inc eax
push eax
lea eax, [esp + 0x94]
push eax
push 1
push 0
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
call fcn.004076bf
add esp, 0x258
ret
Function at 0x401b60
Capabilities:
Create process on windows
Set current directory

Disassembly:
mov eax, 0x412ef0
sub esp, 0x58
lea edx, [eax + 1]
jmp 0x401b70
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b70
sub eax, edx
mov dword [esp], eax
je 0x401bfa
push edi
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
push 0x412ce0
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x412ef0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x401c03
mov edx, dword [esp + 4]
push esi
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
push 0x4130fc
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
pop esi
mov eax, 1
add esp, 0x58
ret
xor eax, eax
add esp, 0x58
ret

Function at 0x401c10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 8]
push eax
mov esi, 1
push esi
push 0
push str.SoftwareLANDesk
push 0x80000002
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401c7a
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 8]
push edx
push eax
push eax
mov eax, dword [esp + 0x18]
push str.CabExtSignal
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401c6f
mov eax, dword [esp + 4]
test eax, eax
je 0x401c6f
xor esi, esi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x401e30
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0x412ce0
call edi
cmp eax, 0xffffffff
je 0x401ee4
mov eax, 0x412ce0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401e50
sub eax, edx
cmp eax, 8
jb 0x401ee4
mov al, byte [0x413100]
test al, al
jne 0x401e9d
mov eax, 0x412ce0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401e73
sub eax, edx
lea eax, [eax + 0x412cd8]
push str._LDTmp__
push eax
call fcn.004082f5
add esp, 8
test eax, eax
jne 0x401ee4
mov al, byte [0x413100]
test al, al
je 0x401ee8
mov eax, 0x412ce0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ea5
sub eax, edx
mov ecx, eax
mov eax, 0x413100
push esi
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401ec0
sub eax, esi
sub ecx, eax
add ecx, 0x412ce0
push 0x413100
push ecx
call fcn.004082f5
add esp, 8
test eax, eax
pop esi
je 0x401ee8
xor eax, eax
pop edi
ret
push 0x412ff8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x412ce0
call fcn.004018c0
add esp, 4
push 0x412ce0
call edi
cmp eax, 0xffffffff
je 0x401f19
push 0x412ce0
call fcn.004016d0
add esp, 4
mov eax, 1
pop edi
ret
Function at 0x401f20
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
mov eax, dword [0x412158]
push esi
push edi
mov dword [esp + 0x114], eax
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0x40
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x402066
mov al, byte [0x413100]
test al, al
je 0x401fbf
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x413100
call esi
lea ecx, [esp + 8]
push ecx
mov edi, eax
call esi
add edi, eax
cmp edi, 0x103
jae 0x401fbf
mov eax, 0x413100
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401f97
lea edi, [esp + 8]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401fa5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x401fe5
lea edi, [esp + 8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401fc4
mov edx, dword [str._LDTmp__]
mov eax, dword [0x40f320]
mov cl, byte [0x40f324]
mov dword [edi], edx
mov dword [edi + 4], eax
mov byte [edi + 8], cl
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402026
xor eax, eax
jmp 0x402000
mov cl, byte [esp + eax + 8]
mov byte [eax + 0x412ce0], cl
inc eax
test cl, cl
jne 0x402000
mov eax, 1
mov ecx, dword [esp + 0x114]
call fcn.004076bf
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x402066
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 8]
mov byte [eax + 0x412ce0], cl
inc eax
test cl, cl
jne 0x402040
mov eax, 1
mov ecx, dword [esp + 0x114]
call fcn.004076bf
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x114]
xor eax, eax
call fcn.004076bf
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402390
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0xcf0000
push str.ClientInstallation
push str.LDClientPK
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x4147ec], eax
jne 0x4023c4
ret
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x4147ec]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
ret

Function at 0x4024c0
Capabilities:
Enumerate gui resources
Shutdown system

Disassembly:
sub esp, 0xac
mov eax, dword [0x412158]
mov dword [esp + 0xa8], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x24], 2
jne 0x402541
lea ecx, [esp]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea edx, [esp + 8]
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [esp]
push 0
push 0
push 0x10
lea eax, [esp + 0x10]
push eax
push 0
push ecx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0x40000
push 6
jmp 0x402552
push 0
push 0x4023e0
call dword [sym.imp.USER32.dll_EnumWindows]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [esp + 0xa8]
call fcn.004076bf
add esp, 0xac
ret

Function at 0x402670
Capabilities:
Create thread

Disassembly:
sub esp, 0x20
mov eax, dword [0x41436c]
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, 1
cmp eax, edi
mov dword [esp + 8], edi
mov dword [0x4147f0], esi
jle 0x4026bf
mov eax, dword [0x414370]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x20
jge 0x4026bf
mov edx, dword [0x414370]
mov eax, dword [edx + 4]
push 0x104
push eax
push 0x413100
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
call fcn.00401dd0
test eax, eax
je 0x4026e7
push esi
call fcn.004025e0
add esp, 4
test eax, eax
je 0x4026e7
mov ecx, dword [esp + 0x38]
push ecx
push esi
call fcn.00402390
add esp, 8
test eax, eax
jne 0x4026f1
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret 0x10
call fcn.00402120
lea edx, [esp + 0x2c]
push edx
push 0
lea eax, [esp + 0x10]
push eax
push 0x4020b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x413204], eax
jne 0x402721
push edi
call dword [sym.imp.KERNEL32.dll_ExitThread]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
call esi
test eax, eax
je 0x402765
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea edx, [esp + 0x10]
push edx
call edi
lea eax, [esp + 0x10]
push eax
call ebx
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
call esi
test eax, eax
jne 0x402745
pop ebx
mov edx, dword [0x413204]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4130fc]
pop edi
pop esi
add esp, 0x20
ret 0x10
Function at 0x4039d6
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x403a11
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x4039ee
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x403a2d
dec esi
je 0x403a26
dec esi
jne 0x403a32
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc