joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5bae10
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.00596600
push dword [esp + 0x38]
mov esi, dword [0x63e394]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call esi
push dword [esp + 0x40]
mov edi, eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebp
test eax, eax
jne 0x5baea5
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.00596600
movups xmm0, xmmword [esp + 0x14]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.005966b0
add esp, 0x20
test edx, edx
ja 0x5baec9
jb 0x5bae97
cmp eax, 0x3e8
ja 0x5baec9
push 1
call ebx
push 1
push esi
push edi
call ebp
test eax, eax
je 0x5bae60
mov ebx, dword [0x63e240]
test edi, edi
je 0x5baeb5
push edi
call ebx
add esp, 4
test esi, esi
je 0x5baebf
push esi
call ebx
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ebx, dword [0x63e240]
test edi, edi
je 0x5baed9
push edi
call ebx
add esp, 4
test esi, esi
je 0x5baee3
push esi
call ebx
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret

Function at 0x5d0170
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x6ec2d0]
mov edi, eax
add esp, 8
test edi, edi
je 0x5d01c7
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x5d01df
cmp esi, ebx
je 0x5d01df
cmp esi, 0x8000
ja 0x5d01df
cmp esi, ebx
jb 0x5d01d8
push esi
push edi
call dword [0x6ec2d0]
mov edi, eax
add esp, 8
test edi, edi
jne 0x5d0190
push ebp
call dword [0x6ec2cc]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x6ec2cc]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x605933
Capabilities:
Parse pe header

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

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x28]
test edi, edi
je 0x60674f
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x606775
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x606761
mov ecx, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x606769
mov eax, dword [eax]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
jmp 0x606788
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x60677f
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x606794
pop edi
mov al, 1
pop esi
add esp, 0x14
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x14]
xorps xmm0, xmm0
push eax
lea eax, [esp + 0x10]
movq qword [esp + 0x18], xmm0
push esi
push eax
call fcn.00606f20
add esp, 0xc
cmp dword [esp + 0xc], 3
je 0x6067d8
push str.boost::filesystem::create_directory
push edi
push esi
push ebx
call fcn.0060bbc0
add esp, 0x10
pop ebx
pop edi
xor al, al
pop esi
add esp, 0x14
ret

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

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x606d23
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x606d4b
push dword [esp + 0x18]
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00606bf0
add esp, 0xc
mov eax, dword [eax]
pop esi
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x606d61
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
test ebx, 0x400
je 0x606d97
push esi
call fcn.00606930
add esp, 4
test al, al
je 0x606d8c
test bl, 0x10
mov eax, 4
mov ecx, 0xb
pop esi
cmovne eax, ecx
pop ebx
add esp, 8
ret
pop esi
mov eax, 9
pop ebx
add esp, 8
ret
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
pop esi
mov eax, ebx
pop ebx
add esp, 8
ret
Function at 0x606e50
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x606e72
mov eax, dword [esp + 0xc]
test eax, eax
je 0x606e6f
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
xor al, al
ret
push esi
push edi
cmp eax, 3
je 0x606e95
cmp eax, 0xb
je 0x606e95
mov esi, dword [esp + 0xc]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x606e8c
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x606eaa
mov esi, dword [esp + 0xc]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x606ea3
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x606f03
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
je 0x606f03
cmp eax, 3
je 0x606f03
cmp eax, 0x7b
je 0x606f03
cmp eax, 0xf
je 0x606f03
cmp eax, 0x15
je 0x606f03
cmp eax, 0x57
je 0x606f03
cmp eax, 0xa1
je 0x606f03
cmp eax, 0x35
je 0x606f03
cmp eax, 0x43
je 0x606f03
call edi
test eax, eax
je 0x606f03
push str.boost::filesystem::remove
push dword [esp + 0x18]
push esi
push eax
call fcn.0060bbc0
add esp, 0x10
xor al, al
pop edi
pop esi
ret
mov eax, dword [esp + 0x14]
test eax, eax
je 0x606f19
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
pop edi
mov al, 1
pop esi
ret
Function at 0x606f20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x639a05
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x6ec7c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
test eax, eax
je 0x606f69
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x606f73
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x606f93
push dword [ebp - 0x60]
push ebx
push edi
call fcn.00606bf0
add esp, 0xc
jmp 0x6070ba
push esi
push ebx
call fcn.00606a90
add esp, 8
mov ecx, eax
mov dword [ebp - 0x64], ecx
test esi, 0x400
je 0x607097
push ebx
call fcn.00606930
add esp, 4
test al, al
jne 0x606fcc
mov eax, dword [ebp - 0x64]
mov dword [edi], 9
mov dword [edi + 4], eax
jmp 0x6070ba
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x606fd6
mov eax, dword [ebx]
push eax
lea ecx, [ebp - 0x28]
call fcn.004a7310
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2000000
push 3
push 0
push 7
push 0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x68], esi
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp eax, 8
jb 0x607025
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00418710
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
jne 0x607051
push dword [ebp - 0x60]
push ebx
push edi
call fcn.00606bf0
add esp, 0xc
jmp 0x6070ba
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x60707d
push dword [ebp - 0x60]
push ebx
push edi
call fcn.00606bf0
add esp, 0xc
push esi
mov dword [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x6070ba
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
push esi
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x64]
and esi, 0x10
je 0x6070a1
mov edx, dword [ebp - 0x68]
jmp 0x6070a6
mov edx, ecx
mov ecx, dword [ebp - 0x68]
xor eax, eax
test esi, esi
setne al
add eax, 2
test esi, esi
mov dword [edi], eax
cmove ecx, edx
mov dword [edi + 4], ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00604ed9
mov esp, ebp
pop ebp
ret
Function at 0x6070e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
test ebx, ebx
je 0x6070f9
xorps xmm0, xmm0
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
mov edi, dword [esp + 0x14]
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x607107
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x60712a
mov esi, dword [esp + 0x10]
push ebx
push edi
push esi
call fcn.00606bf0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
ret
push esi
push edi
call fcn.00606a90
add esp, 8
mov ebx, eax
test esi, 0x400
je 0x607163
push edi
call fcn.00606930
add esp, 4
mov ecx, 9
test al, al
mov edx, 4
mov eax, dword [esp + 0x10]
cmovne ecx, edx
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], ecx
pop ebx
ret
and esi, 0x10
je 0x60716e
mov edx, dword [esp + 0x18]
jmp 0x607174
mov edx, ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
xor ecx, ecx
test esi, esi
pop edi
setne cl
add ecx, 2
test esi, esi
pop esi
cmove ebx, edx
mov dword [eax], ecx
mov dword [eax + 4], ebx
pop ebx
ret
Function at 0x60d200
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63a260
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6ec7c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x6ec858]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], 0
cmp eax, 0xffffffff
je 0x60d264
push eax
call esi
test eax, eax
mov eax, dword [0x6ec858]
je 0x60d264
cmp eax, 0xffffffff
jne 0x60d250
xor ecx, ecx
jmp 0x60d25a
push eax
call esi
mov ecx, eax
mov eax, dword [0x6ec858]
cmp byte [ecx + 0x38], 0
je 0x60d264
mov cl, 1
jmp 0x60d266
xor cl, cl
mov dword [ebp - 4], 0xffffffff
test cl, cl
je 0x60d2b7
mov dword [ebp - 4], 1
cmp eax, 0xffffffff
je 0x60d2aa
push eax
call esi
test eax, eax
je 0x60d2aa
mov eax, dword [0x6ec858]
cmp eax, 0xffffffff
jne 0x60d292
xor eax, eax
jmp 0x60d295
push eax
call esi
push 0
push 0
push dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
jne 0x60d2aa
mov al, 1
jmp 0x60d2ac
xor al, al
mov dword [ebp - 4], 0xffffffff
test al, al
jne 0x60d2c7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0060cbf0
lea ecx, [eax + 0x34]
call fcn.00441630
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x6d245c
lea eax, [ebp - 0xd]
push eax
call fcn.0060dddd
int3
Function at 0x60d680
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63a2dd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6ec7c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x6ec858]
cmp eax, 0xffffffff
jne 0x60d6b4
xor ebx, ebx
jmp 0x60d6bd
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x60d796
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x60d6e0
cmp dword [ebx + 0xc], 0
je 0x60d771
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x60d72c
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x60d712
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x60d6e7
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x60d6d6
mov eax, dword [ebx + 0x14]
mov esi, dword [eax]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x60d74d
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x60d74d
push eax
mov eax, dword [esi + 0x14]
push ecx
call eax
add esp, 8
push esi
lea ecx, [ebx + 0x14]
call fcn.0060c690
push 0x20
push eax
call fcn.00604b8c
mov eax, dword [ebx + 0x18]
add esp, 8
mov byte [ebp - 4], 0
test eax, eax
jne 0x60d730
jmp 0x60d6d2
push 0x60cb60
push 0x70121c
call fcn.0060c940
mov eax, dword [0x6ec858]
add esp, 8
cmp eax, 0xffffffff
je 0x60d796
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 2
test ebx, ebx
je 0x60d7c3
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x60d7c3
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x60d7e0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x60d840
push 0
push 0
call dword [0x63e2d0]
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x60d80a
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esi]
push edi
add eax, 4
lock inc dword [eax]
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x60d828
cmp eax, 0xffffffff
je 0x60d828
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x404230
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1144
call fcn.00409620
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x44e368]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x44e36c]
push esi
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], edx
call fcn.00404220
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x44e370]
mov edx, dword [0x44e374]
add edi, 0x23f
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea ecx, [ecx]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x455afc]
shl esi, 4
add esi, dword [ebp - 0x1c]
cmp eax, 0xfa9
jne 0x4042bc
mov dword [0x455af8], 0xedeb2e40
jmp 0x4042d7
cmp eax, 0x3eb
jne 0x4042d7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x455588], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x455afc], 0x9e6
mov dword [0x455af4], 0xf4ea3dee
jne 0x404310
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x455afc], 0x213
jne 0x4043ab
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
lea eax, [ebp - 0x944]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x1144]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommError]
lea eax, [ebp - 0x544]
push eax
push 0
push 0x403ed0
push 0x403f1c
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [ebp - 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub ebx, dword [ebp - 4]
cmp dword [0x455afc], 0xc
jne 0x4043bf
push 0
call dword [sym.imp.KERNEL32.dll_GlobalWire]
mov ecx, ebx
shr ecx, 5
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov edx, ebx
shl edx, 4
add edx, dword [ebp - 0x14]
lea eax, [edi + ebx]
xor edx, eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x404290
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404410
Capabilities:
Clear file content
Connect pipe
Get thread local storage value
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1408
call fcn.00409620
mov eax, dword [0x455afc]
mov ecx, dword [0x45558c]
shr eax, 3
test eax, eax
jbe 0x404516
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x455afc], 0x959
jne 0x4044fc
push 0
lea eax, [ebp - 0xc08]
push eax
push 0
push 0x403f28
push 0
push 0
call edi
push 0
push 0
push 0
call ebx
push 0
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0
call dword [sym.imp.KERNEL32.dll_TlsFree]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea edx, [ebp - 0x1408]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp - 4]
push eax
call fcn.00404230
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404450
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406ee0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44d5f8]
jne 0x406eea
repz ret
jmp fcn.0040b22e

Function at 0x40ae55
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004081fb
and dword [ebp - 4], 0
cmp dword [0x453578], 0
mov ebx, eax
jne 0x40af06
push 0x401b74
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40afb7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b68
push edi
call esi
test eax, eax
je 0x40afb7
push eax
call fcn.00408189
mov dword [esp], 0x401b58
push edi
mov dword [0x453578], eax
call esi
push eax
call fcn.00408189
mov dword [esp], 0x401b44
push edi
mov dword [0x45357c], eax
call esi
push eax
call fcn.00408189
mov dword [esp], 0x401b28
push edi
mov dword [0x453580], eax
call esi
push eax
call fcn.00408189
pop ecx
mov dword [0x453588], eax
test eax, eax
je 0x40af06
push 0x401b10
push edi
call esi
push eax
call fcn.00408189
pop ecx
mov dword [0x453584], eax
mov eax, dword [0x453584]
cmp eax, ebx
je 0x40af5e
cmp dword [0x453588], ebx
je 0x40af5e
push eax
call fcn.00408204
push dword [0x453588]
mov esi, eax
call fcn.00408204
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40af5e
test edi, edi
je 0x40af5e
call esi
test eax, eax
je 0x40af55
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40af55
test byte [ebp - 0xc], 1
jne 0x40af5e
or dword [ebp + 0x10], 0x200000
jmp 0x40af97
mov eax, dword [0x45357c]
cmp eax, ebx
je 0x40af97
push eax
call fcn.00408204
pop ecx
test eax, eax
je 0x40af97
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40af97
mov eax, dword [0x453580]
cmp eax, ebx
je 0x40af97
push eax
call fcn.00408204
pop ecx
test eax, eax
je 0x40af97
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x453578]
call fcn.00408204
pop ecx
test eax, eax
je 0x40afb7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40afb9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404a80
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp], 0
push eax
push 2
push 0
push 0x4030a4
push 0x80000002
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
test eax, eax
jne 0x404ad9
mov edx, dword [esp]
lea ecx, [esp + 4]
push 4
push ecx
push 4
push eax
push 0x403118
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
add esp, 8
ret
Function at 0x4050e0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x401856
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401228
mov edx, dword [ebp + 8]
xor esi, esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], esi
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
push 3
lea eax, [ebp - 0x30]
push 0x403158
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryConstruct2]
call fcn.00404a80
mov ecx, dword [ebp - 0x18]
or ebx, 0xffffffff
push ecx
push esi
mov word [0x40a06c], si
mov word [0x40a06e], bx
mov dword [0x40a070], esi
mov word [0x40a074], si
mov dword [0x40a078], ebx
mov word [0x40a07c], si
call dword [sym.imp.MSVBVM60.DLL_rtcBstrFromAnsi]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x40]
call edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
mov ecx, 0x40a024
call edi
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov edx, dword [0x40a024]
push edx
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
push 0x404f00
mov dword [0x40a028], eax
mov dword [0x40a030], eax
call fcn.00404da0
mov edi, dword [sym.imp.KERNEL32.DLL_CreateEventW]
push esi
push esi
push 1
push esi
mov dword [0x40a034], eax
mov dword [0x40a038], esi
mov dword [0x40a03c], esi
call edi
push esi
push esi
push 1
push esi
mov dword [0x40a060], eax
call edi
push esi
push esi
push 1
push esi
mov dword [0x40a068], eax
call edi
mov ecx, dword [0x40a060]
mov dword [0x40a064], eax
cmp ecx, esi
je 0x40526d
cmp dword [0x40a068], esi
je 0x40526d
cmp eax, esi
je 0x40526d
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], esi
push eax
push 4
push esi
push 0x405050
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, esi
mov dword [0x40a02c], eax
je 0x405272
push eax
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov ecx, dword [ebp - 0x24]
mov edx, dword [0x40a02c]
push ebx
push esi
mov dword [ecx], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [0x40a064]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x24]
push edx
push 2
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
cmp eax, 1
jne 0x40526d
push 4
mov word [0x40a06c], bx
mov word [0x40a06e], si
call fcn.00404db0
mov eax, dword [0x40a02c]
cmp word [0x40a06c], si
jne 0x40529e
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
call esi
mov eax, dword [0x40a060]
push eax
call esi
mov ecx, dword [0x40a068]
push ecx
call esi
mov edx, dword [0x40a064]
push edx
call esi
mov eax, dword [0x40a06c]
push 0x4052e1
not eax
mov word [0x40a06e], ax
mov ecx, dword [0x40a06c]
mov dword [ebp - 0x3c], ecx
jmp 0x4052c5
lea ecx, [ebp - 0x18]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea eax, [ebp - 0x44]
lea edx, [ebp - 0x30]
push eax
push 0
mov dword [ebp - 0x44], edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
ret