joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f004]
jne 0x401010
repz ret
jmp fcn.00401788

Function at 0x405655
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.004030b9
and dword [ebp - 4], 0
cmp dword [0x430db0], 0
mov ebx, eax
jne 0x405706
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4057b7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4057b7
push eax
call fcn.00403047
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x430db0], eax
call esi
push eax
call fcn.00403047
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x430db4], eax
call esi
push eax
call fcn.00403047
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x430db8], eax
call esi
push eax
call fcn.00403047
pop ecx
mov dword [0x430dc0], eax
test eax, eax
je 0x405706
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403047
pop ecx
mov dword [0x430dbc], eax
mov eax, dword [0x430dbc]
cmp eax, ebx
je 0x40575e
cmp dword [0x430dc0], ebx
je 0x40575e
push eax
call fcn.004030c2
push dword [0x430dc0]
mov esi, eax
call fcn.004030c2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40575e
test edi, edi
je 0x40575e
call esi
test eax, eax
je 0x405755
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405755
test byte [ebp - 0xc], 1
jne 0x40575e
or dword [ebp + 0x10], 0x200000
jmp 0x405797
mov eax, dword [0x430db4]
cmp eax, ebx
je 0x405797
push eax
call fcn.004030c2
pop ecx
test eax, eax
je 0x405797
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405797
mov eax, dword [0x430db8]
cmp eax, ebx
je 0x405797
push eax
call fcn.004030c2
pop ecx
test eax, eax
je 0x405797
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x430db0]
call fcn.004030c2
pop ecx
test eax, eax
je 0x4057b7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4057b9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42c797
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push dword [0x43ed24]
push dword [0x43ea40]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
leave
ret

Function at 0x42c826
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
jle 0x42c850
push esi
and dword [ebp - 4], 0
lea esi, [ebp - 4]
call fcn.0042c81b
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, edi
xor byte [eax], cl
inc edi
cmp edi, dword [ebp + 0xc]
jl 0x42c833
pop esi
cmp dword [ebp + 0xc], 0x2d
pop edi
jne 0x42c868
or dword [0x43ed34], 0xffffffff
mov dword [0x43ed30], 0xa62e7790
leave
ret
Function at 0x403498
Capabilities:
Get system information on windows

Disassembly:
push esi
sub esp, 0x24
mov esi, esp
xorps xmm0, xmm0
and dword [esi + 0x20], 0
movups xmmword [esi + 0x10], xmm0
movups xmmword [esi], xmm0
push esi
call sub.kernel32.dll_GetNativeSystemInfo
movzx eax, word [esi]
xor ecx, ecx
test ax, ax
sete cl
shl ecx, 5
cmp ax, 9
push 0x40
pop eax
cmovne eax, ecx
add esp, 0x24
pop esi
ret
Function at 0x403b52
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
lea eax, [ebp - 0x18]
add edx, ecx
lea edi, [ebp - 0x40]
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x417df0
mov esi, dword fs:[0]
mov dword [eax], esi
mov dword fs:[0], eax
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
and word [edi + 0xc], 0
and dword [eax + 8], 0
lea ecx, [ebp - 0x30]
mov edx, edi
mov dword [edi], 1
call fcn.004014e6
mov eax, dword [ebp - 0x2c]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov dword [ebp - 0x20], eax
push eax
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x403bfc
mov ebx, dword [ebp + 8]
mov esi, eax
and dword [ebp - 0x40], 0
mov eax, dword [ebx + 4]
push 0
lea ecx, [ebp - 0x40]
push ecx
push dword [ebx + 8]
mov dword [ebp - 0x24], eax
push eax
push esi
call sub.kernel32.dll_WriteFile
mov edi, eax
push esi
call sub.kernel32.dll_CloseHandle
test edi, edi
je 0x403c17
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
call fcn.0040f6f8
xor esi, esi
jmp 0x403c35
mov dword [ebp - 0x10], 1
call fcn.00408f82
mov ebx, dword [ebp + 8]
mov esi, eax
mov edi, edx
mov eax, dword [ebx + 4]
mov dword [ebp - 0x24], eax
jmp 0x403c2a
mov dword [ebp - 0x10], 1
call fcn.00408f82
mov ebx, dword [ebp + 8]
mov esi, eax
mov edi, edx
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
call fcn.0040f6f8
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x24]
call fcn.00408ee7
mov eax, dword [ebp - 0x18]
mov edx, edi
mov dword fs:[0], eax
mov eax, esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403c84
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
lea esi, [ebp - 0x18]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 8]
mov dword [esi - 4], esp
or dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0x417e00
mov ecx, dword fs:[0]
mov dword [esi], ecx
mov dword fs:[0], esi
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x58]
push eax
call fcn.00403511
pop eax
and dword [esi + 8], 0
sub esp, 4
and dword [esp], 0
xor edx, edx
lea ecx, [ebp - 0x48]
inc edx
call fcn.00403511
pop eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x3c]
push eax
call fcn.00403511
pop eax
mov esi, dword [ebp - 0x54]
lea eax, [ebp - 0x30]
push 0
push eax
push 0
push 0x20106
push 0
push 0
push 0
push esi
push 0x80000001
call sub.ADVAPI32.dll_RegCreateKeyExW
test eax, eax
je 0x403d4f
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 2
sub esp, 4
and dword [esp], 0
xor edx, edx
lea ecx, [ebp - 0x64]
inc edx
call fcn.00409015
pop eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x24]
movsd xmm0, qword [ebp - 0x64]
mov edx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x44]
mov esi, dword [ebp - 0x20]
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
jmp 0x403db7
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x44]
add eax, eax
push eax
push ebx
push 1
push 0
mov dword [ebp - 0x2c], ecx
push ecx
push edi
call sub.ADVAPI32.dll_RegSetValueExW
test eax, eax
je 0x403de4
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 3
sub esp, 4
and dword [esp], 0
xor edx, edx
lea ecx, [ebp - 0x64]
inc edx
call fcn.00409015
pop eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x24]
movsd xmm0, qword [ebp - 0x64]
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
push dword [ebp - 0x28]
call sub.ADVAPI32.dll_RegCloseKey
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x3c]
call fcn.0040f6f8
mov ecx, dword [ebp - 0x48]
mov edx, edi
call fcn.0040f6f8
mov ecx, dword [ebp - 0x58]
mov edx, esi
call fcn.0040f6f8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x24]
mov dword [eax], 0x80000000
push edi
call sub.ADVAPI32.dll_RegCloseKey
mov ecx, dword [ebp - 0x3c]
mov edx, ebx
call fcn.0040f6f8
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x2c]
jmp 0x403dc4
Function at 0x404148
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
lea eax, [ebp - 0x18]
mov esi, ecx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x417e20
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea eax, [ebp - 0x20]
and dword [eax], 0
push eax
push 0
push 0
push 0x427434
call sub.shell32.dll_SHGetKnownFolderPath
test eax, eax
je 0x4041c1
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x24], esi
call fcn.004010fc
and dword [ebp - 0x10], 0
push 8
pop ecx
call fcn.0040193e
movsd xmm0, qword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov dword [ecx + 8], 0x427484
movsd qword [eax], xmm0
mov dword [ecx], 0x80000000
jmp 0x4041e7
mov edx, dword [ebp - 0x20]
xor eax, eax
dec eax
cmp word [edx + eax*2 + 2], 0
lea eax, [eax + 1]
jne 0x4041c7
or dword [ebp - 0x10], 0xffffffff
mov ecx, esi
push eax
call fcn.00410299
pop eax
push dword [ebp - 0x20]
call sub.ole32.dll_CoTaskMemFree
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404289
Capabilities:
Set registry value

Disassembly:
push ebx
push edi
push esi
sub esp, 0x1c
mov esi, ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov ebx, edx
lea edx, [esp + 0xc]
mov edi, esp
add ecx, eax
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
and word [edx + 0xc], 0
mov ecx, edi
mov dword [edx], 1
call fcn.0040163e
mov edi, dword [edi + 4]
push 4
pop eax
lea ecx, [esp + 0x34]
push eax
push ecx
push eax
push 0
push edi
push ebx
call sub.ADVAPI32.dll_RegSetValueExW
test eax, eax
je 0x4042de
mov ecx, esi
call fcn.004010eb
jmp 0x4042e1
mov byte [esi], 4
mov ecx, dword [esp]
mov edx, edi
call fcn.0040f6f8
add esp, 0x1c
pop esi
pop edi
pop ebx
ret
Function at 0x4042f2
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
lea eax, [ebp - 0x18]
add edx, ecx
lea edi, [ebp - 0x3c]
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x417e30
mov esi, dword fs:[0]
mov dword [eax], esi
mov dword fs:[0], eax
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
and word [edi + 0xc], 0
lea esi, [ebp - 0x2c]
mov edx, edi
mov dword [edi], 1
mov ecx, esi
call fcn.0040163e
mov ebx, dword [esi + 4]
push ebx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x404364
test al, 0x10
jne 0x40437e
and dword [ebp - 0x10], 0
mov dword [ebp - 0x20], ebx
call fcn.00408f82
mov esi, eax
mov edi, 0x427df4
jmp 0x4043ac
push 0
push ebx
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
je 0x404382
mov ecx, dword [ebp - 0x2c]
mov edx, ebx
call fcn.0040f6f8
xor esi, esi
jmp 0x4043b9
xor esi, esi
jmp 0x4043af
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x20], ebx
call fcn.004010eb
mov dword [ebp - 0x10], 1
push 8
pop ecx
call fcn.0040193e
movsd xmm0, qword [ebp - 0x3c]
mov esi, eax
mov edi, 0x427484
movsd qword [eax], xmm0
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
mov edx, ebx
call fcn.0040f6f8
mov eax, dword [ebp - 0x18]
mov edx, edi
mov dword fs:[0], eax
mov eax, esi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4043fb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x150
lea eax, [ebp - 0x18]
lea esi, [ebp - 0x158]
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x417e40
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
push 0xc8
push 0
push esi
call fcn.00418e60
add esp, 0xc
xorps xmm0, xmm0
lea eax, [0x422beb]
lea edx, [ebp - 0x5c]
mov dword [esi - 4], 0xcc
mov dword [esi + 0x28], 1
mov dword [edx], eax
movups xmmword [ebp - 0x4c], xmm0
lea eax, [ebp - 0x5c]
mov ecx, dword [edx]
mov dword [edx], 0x2a9b34c0
mov edx, dword [eax]
call fcn.00401bb4
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [ebp - 0x90], xmm0
movups xmmword [ebp - 0x80], xmm0
movups xmmword [ebp - 0x70], xmm0
cmp ecx, 0x2f
ja 0x40449d
mov edx, dword [ecx + 0x4275f1]
xor edx, dword [eax + ecx]
mov dword [ebp + ecx - 0x90], edx
add ecx, 4
jmp 0x404483
movzx ecx, byte [eax + 0x32]
movzx eax, word [eax + 0x30]
or dword [ebp - 0x10], 0xffffffff
lea edx, [ebp - 0x90]
lea esi, [ebp - 0x3c]
xor eax, 0xf87d
xor cl, 0x51
mov word [edx + 0x30], ax
mov byte [edx + 0x32], cl
mov ecx, esi
push 0x33
call fcn.00409015
pop eax
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
lea edx, [ebp - 0x5c]
and dword [ebp - 0x10], 0
add eax, ecx
mov dword [edx + 4], ecx
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x30]
mov dword [edx + 8], eax
and word [edx + 0xc], 0
mov dword [edx], 1
call fcn.004014e6
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x15c]
push eax
push ecx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push esi
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x404548
push dword [ebp - 0x4c]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 0x48]
call sub.kernel32.dll_CloseHandle
mov ecx, dword [ebp - 0x30]
mov edx, esi
call fcn.0040f6f8
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x20]
call fcn.00408ee7
xor esi, esi
jmp 0x40456f
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], 1
call fcn.00408f82
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x24]
mov esi, eax
call fcn.0040f6f8
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x20]
call fcn.00408ee7
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x150
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408630
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
mov esi, esp
mov dword [esi + 0x58], ebp
mov dword [esi + 0x5c], esp
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0x417e60
lea eax, [esi + 0x60]
mov ecx, dword fs:[0]
mov dword [esi + 0x60], ecx
mov dword fs:[0], eax
push 0x412e1d
push 0
call dword [sym.imp.kernel32.dll_AddVectoredExceptionHandler]
lea eax, [esi + 0x3c]
mov dword [esi + 0x3c], 0x5000
push eax
call dword [sym.imp.kernel32.dll_SetThreadStackGuarantee]
call dword [sym.imp.kernel32.dll_GetCurrentThread]
mov ecx, dword [0x434054]
push 0x42b9a4
push eax
call ecx
lea ecx, [esi + 0x3c]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x68], 0
call fcn.00411a38
movsd xmm0, qword [eax + 8]
mov ebx, eax
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x30], eax
movsd qword [esi + 0x18], xmm0
mov eax, dword [0x434a38]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
movzx eax, byte [eax + 0x3c]
test eax, eax
je 0x40870b
cmp eax, 1
je 0x408751
lea ecx, [esi + 0x2c]
call fcn.004119ac
lea eax, [esi + 4]
mov ecx, 0x42a103
mov edx, 0x46
push 0x42a1c0
push 0x429ccc
push eax
call fcn.004268c9
add esp, 0xc
ud2
mov dword [esi + 8], ebx
mov byte [esi + 3], 1
mov dword [esi + 0x68], 1
mov edx, 0x411c67
mov eax, dword [0x434a38]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
lea ecx, [eax + 0x38]
call fcn.00411c74
mov eax, dword [0x434a38]
mov ecx, dword fs:[0x2c]
mov ebx, dword [esi + 8]
mov eax, dword [ecx + eax*4]
mov byte [eax + 0x3c], 1
mov eax, dword [0x434a38]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp dword [eax + 0x38], 0
jne 0x4087db
mov eax, dword [0x434a38]
mov ecx, dword fs:[0x2c]
mov edi, dword [ecx + eax*4]
lea ecx, [edi + 0x38]
call fcn.004119ed
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov dword [edi + 0x38], ebx
mov dword [esi + 0xc], 0
call fcn.0041198e
lea ecx, [esi + 0xc]
call fcn.004119ed
mov ecx, 0x4045b3
mov dword [esi + 0x68], 7
call fcn.004011e5
mov dword [esi + 8], 0
mov dword [esi + 0x68], 0xe
call fcn.00412840
mov eax, dword [esi + 0x60]
mov dword fs:[0], eax
mov eax, dword [esi + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea edx, [esi + 0x3c]
lea eax, [esi + 4]
mov dword [esi + 0x10], 0
mov dword [esi + 0x3c], 0x42a294
mov dword [esi + 0x40], 1
mov dword [esi + 0x4c], 0
mov dword [esi + 0xc], ebx
mov byte [esi + 0x14], 0
mov dword [esi + 0x68], 2
lea ecx, [esi + 0x34]
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], 0
lea eax, [esi + 0x10]
push edx
push eax
push ecx
call fcn.00411480
add esp, 0xc
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x38]
call fcn.00411471
mov ecx, 7
int 0x29
ud2
Function at 0x40b492
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov dword [esp], ecx
push 0x20
pop ebp
xor eax, eax
mov edi, dword [esp]
test al, 1
jne 0x40b4e0
lea eax, [edi + ebp]
mov esi, ebp
mov dword [esp], eax
push 2
push ebp
push edi
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov ebx, eax
xor ebp, ebp
mov al, 1
cmp ebx, 0xbfffffff
jbe 0x40b49f
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
mov al, 1
jne 0x40b49f
and ebx, 0x7fffffff
mov eax, ebx
jmp 0x40b4e2
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x41116e
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x34
mov edi, edx
lea edx, [esp + 4]
mov eax, dword [esp + 0x44]
mov esi, ecx
mov ecx, dword [esp + 0x48]
mov ebx, 0x103
and dword [edx + 4], 0
mov dword [edx], ebx
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, ebx
jne 0x4111bb
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
cmp eax, 0x103
je 0x4111df
test eax, eax
js 0x4111cb
mov eax, dword [esp + 8]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x4111d8
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
and dword [esi], 0
mov dword [esi + 4], eax
add esp, 0x34
pop esi
pop edi
pop ebx
ret
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
mov edx, esp
lea esi, [esp + 0x14]
and dword [eax], 0
mov dword [ecx], 0x42b690
mov dword [ecx + 4], 1
and dword [ecx + 0x10], 0
mov dword [ecx + 8], edx
and dword [ecx + 0xc], 0
mov byte [eax + 4], 0
push ecx
push eax
push esi
call fcn.00411480
add esp, 0xc
mov ecx, dword [esi]
mov edx, dword [esi + 4]
call fcn.00411471
push 7
pop ecx
int 0x29
ud2

Function at 0x4157e5
Capabilities:
Terminate process

Disassembly:
call fcn.00412840
call 0x4157ef
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x4189e5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0x418a24
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x418a24
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x418a24
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x418a24
cmp dword [ecx + 0x74], 0xe
jbe 0x418a24
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41fba6
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 0x41fc43
push ebx
push esi
call fcn.0041fb6f
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.0041fab8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41fbf0
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41fc42
push edi
push eax
call fcn.004207a6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41fc10
call fcn.0041e6e1
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41fc41
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041fab8
add esp, 0x20
test eax, eax
jne 0x41fc2f
push edi
call fcn.0041e6e1
jmp 0x41fc37
push ebx
call fcn.0041e6e1
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 0x420f29
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42e3e8
push 0x42e3e0
push str.FlsAlloc
push 0x1e
call fcn.00420dea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x420f5d
push dword [ebp + 8]
mov ecx, esi
call dword [0x4271d8]
call esi
jmp 0x420f63
call dword [sym.imp.kernel32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x420fa7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42e3f8
push 0x42e3f0
push str.FlsGetValue
push 0x20
call fcn.00420dea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x420fde
push dword [ebp + 8]
mov ecx, esi
call dword [0x4271d8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.kernel32.dll_TlsGetValue]
Function at 0x426460
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42648d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42648d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x1001b6c3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001b702
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001b702
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001b702
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001b702
cmp dword [ecx + 0x74], 0xe
jbe 0x1001b702
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001e37f
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 0x1001e41c
push ebx
push esi
call fcn.1001e348
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.1001e2dc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001e3c9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001e41b
push edi
push eax
call fcn.1001f33a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001e3e9
call fcn.1001ce24
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001e41a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001e2dc
add esp, 0x20
test eax, eax
jne 0x1001e408
push edi
call fcn.1001ce24
jmp 0x1001e410
push ebx
call fcn.1001ce24
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 0x1001e689
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10026cc8
push 0x10026cc0
push str.FlsAlloc
push 0x1f
call fcn.1001e5a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e6bd
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002514c]
call esi
jmp 0x1001e6c3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001e707
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10026cd8
push 0x10026cd0
push str.FlsGetValue
push 0x21
call fcn.1001e5a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e73e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002514c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001e746
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10026ce0
push 0x10026cd8
push str.FlsSetValue
push 0x22
call fcn.1001e5a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e780
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002514c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10023e10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10023e3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10023e3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret