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

Disassembly:
cmp ecx, dword [0x441414]
jne 0x41d5ea
repz ret
jmp fcn.00422756

Function at 0x42ba33
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042292d
xor ebx, ebx
cmp dword [0x4451d4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x42bb08
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x42ba73
xor eax, eax
jmp 0x42bbcc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x437198
push edi
call esi
cmp eax, ebx
je 0x42ba6c
push eax
call fcn.004228ca
mov dword [esp], 0x437188
push edi
mov dword [0x4451d4], eax
call esi
push eax
call fcn.004228ca
mov dword [esp], 0x437174
push edi
mov dword [0x4451d8], eax
call esi
push eax
call fcn.004228ca
mov dword [0x4451dc], eax
lea eax, [ebp - 8]
push eax
call fcn.0042165e
test eax, eax
pop ecx
pop ecx
je 0x42bad6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042328f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x42bb08
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004228ca
cmp eax, ebx
pop ecx
mov dword [0x4451e4], eax
je 0x42bb08
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004228ca
pop ecx
mov dword [0x4451e0], eax
mov eax, dword [0x4451e0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x42bb81
cmp dword [0x4451e4], esi
je 0x42bb81
push eax
call fcn.00422936
pop ecx
call eax
cmp eax, ebx
je 0x42bb4e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4451e4]
call fcn.00422936
pop ecx
call eax
test eax, eax
je 0x42bb4e
test byte [ebp - 0x18], 1
jne 0x42bb81
lea eax, [ebp - 0xc]
push eax
call fcn.00421695
test eax, eax
pop ecx
je 0x42bb69
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042328f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x42bb78
or dword [ebp + 0x10], 0x200000
jmp 0x42bbb2
or dword [ebp + 0x10], 0x40000
jmp 0x42bbb2
mov eax, dword [0x4451d8]
cmp eax, esi
je 0x42bbb2
push eax
call fcn.00422936
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42bbb2
mov eax, dword [0x4451dc]
cmp eax, esi
je 0x42bbb2
push dword [ebp - 4]
push eax
call fcn.00422936
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4451d4]
call fcn.00422936
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430d74
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x441414]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00430d09
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0041fb10
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x430dc3
cmp dword [ebp - 0x1c], 5
jb 0x430ddb
jmp 0x430dd7
cmp dword [ebp - 0x10], 1
jne 0x430ddb
cmp dword [ebp - 0x1c], 4
ja 0x430dd7
jne 0x430ddb
cmp dword [ebp - 0x18], 0
jbe 0x430ddb
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x438370
call fcn.00430bfa
test eax, eax
jge 0x430dfc
mov byte [0x445330], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041d5e0
add ebp, 0x78
leave
ret
Function at 0x1000fe90
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
sub esp, 0x20
push ebx
push edi
push 0xffffffffffffffec
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xfffbffff
or eax, 0x80
cmp dword [0x10046ef8], 1
jne 0x1000fec0
or eax, 8
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push 0xffffffffffffffec
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edx, dword [esi]
mov eax, dword [edx + 0x8c]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call eax
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
cmp byte [esp + 0x2c], 0
mov ecx, dword [esi + 0x1740]
push 0
je 0x1000ff4a
push 0x32
push 0x32
push 0xffffffffffffff9c
push 0xffffffffffffff9c
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esi + 0x1800]
mov eax, dword [edx + 0x48]
lea ecx, [esi + 0x1800]
push 1
push 0x10036204
call eax
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esi + 0x1818], eax
jmp 0x1000ff65
push 0x1a1
push 0x27b
push 0xb9
push 0x1bd
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
cmp byte [esi + 0x1938], 0
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, 0x49
je 0x1000ff80
mov edi, 0x4b
jmp 0x1000ff91
mov edx, dword [esi]
mov eax, dword [edx + 0x8c]
push 0
mov ecx, esi
call eax
push eax
call ebx
xor ecx, ecx
cmp dword [0x10046ef8], 1
jne 0x1000ff9f
or ecx, 0xffffffff
mov eax, dword [esp + 0xc]
sub eax, dword [esp + 0x14]
push edi
add eax, dword [esp + 0x28]
push 0
cdq
sub eax, edx
sar eax, 1
push 0
push eax
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x20]
add eax, dword [esp + 0x30]
cdq
sub eax, edx
mov edx, dword [esi]
sar eax, 1
push eax
mov eax, dword [edx + 0x8c]
push ecx
mov ecx, esi
call eax
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [esi]
mov eax, dword [edx + 0x8c]
push 1
mov ecx, esi
call eax
push eax
call ebx
pop edi
pop ebx
add esp, 0x20
ret 4
Function at 0x407567
Capabilities:
Encode data using xor

Disassembly:
push 4
mov eax, 0x4e3063
call fcn.004c2a60
call fcn.004084e5
test al, al
jne 0x4075ab
mov esi, dword [0x541ad4]
xor edx, edx
push 8
mov ecx, edx
pop edi
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor ecx, eax
dec edi
jne 0x407589
add esi, ecx
inc edx
cmp edx, 0x100
jl 0x407584
mov dword [0x541ad4], esi
push 1
push dword [ebp + 8]
lea ecx, [ebp + 8]
push str.Chro
call fcn.00401824
and dword [ebp - 4], 0
push ecx
mov ecx, esp
push str.me_Profiles
push eax
push ecx
call fcn.00401e6a
add esp, 0xc
call fcn.00406efd
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
mov bl, al
call fcn.00404fef
mov al, bl
call fcn.004c2a2e
ret
Function at 0x40893e
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [0x541ad4]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
lea edx, [ecx + 2]
lea eax, [ecx + 1]
imul eax, edx
imul eax, ecx
push ebx
push esi
push edi
push 0xc
cdq
pop ecx
idiv ecx
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
cmp edx, 2
jne 0x40897c
dec dword [0x541f90]
call fcn.00408d5a
test al, al
jne 0x40898f
call fcn.004c2f1b
mov dword [0x541ad4], eax
push edi
call fcn.00408b38
mov ebx, dword [ebp + 8]
pop ecx
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x408af9
test esi, esi
je 0x408af9
cmp eax, dword [ebp + 0x14]
ja 0x408af9
mov ecx, dword [0x541ad4]
push 6
lea edx, [ecx + 2]
lea eax, [ecx + 1]
imul eax, edx
imul eax, ecx
cdq
pop ecx
idiv ecx
xor esi, esi
cmp edx, 1
jne 0x408a09
push 0x28
call fcn.004c0e30
pop ecx
mov edi, eax
mov ebx, esi
call fcn.004c2f1b
add eax, dword [0x541ad4]
mov dword [edi + ebx*4], eax
inc ebx
cmp ebx, 0xa
jl 0x4089e0
mov eax, dword [edi + 0x24]
push edi
mov dword [0x541ad4], eax
call fcn.004c1c8e
mov edi, dword [ebp - 8]
mov ebx, dword [ebp + 8]
pop ecx
mov edx, esi
test edi, edi
je 0x408aad
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp edx, edi
jae 0x408a24
movzx ecx, byte [edx + ebx]
inc edx
jmp 0x408a26
mov ecx, esi
cmp edx, edi
jae 0x408a34
movzx eax, byte [edx + ebx]
mov dword [ebp - 0x14], eax
inc edx
jmp 0x408a37
mov dword [ebp - 0x14], esi
cmp edx, edi
jae 0x408a42
movzx eax, byte [edx + ebx]
inc edx
jmp 0x408a44
mov eax, esi
mov edi, dword [ebp - 4]
shl ecx, 8
add ecx, dword [ebp - 0x14]
shl ecx, 8
add ecx, eax
mov eax, ecx
shr eax, 0x12
and eax, 0x3f
inc dword [ebp - 4]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi], al
mov edi, dword [ebp - 4]
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
inc dword [ebp - 4]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi], al
mov edi, dword [ebp - 4]
mov eax, ecx
shr eax, 6
and eax, 0x3f
and ecx, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi], al
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov eax, edi
mov edi, dword [ebp - 8]
mov byte [eax + 1], cl
add eax, 2
mov dword [ebp - 4], eax
cmp edx, edi
jb 0x408a1d
push 3
mov eax, edi
xor edx, edx
pop ecx
div ecx
mov edi, dword [ebp - 0x10]
lea ecx, [edx*4 + 0x4f6aac]
cmp dword [ecx], esi
jle 0x408ad3
mov eax, dword [ebp - 0xc]
dec eax
add eax, edi
mov byte [eax], 0x3d
inc esi
dec eax
cmp esi, dword [ecx]
jl 0x408aca
call fcn.00408c78
test al, al
jne 0x408af0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x50
xor edx, edx
pop ecx
div ecx
inc edx
mov dword [0x541ad4], edx
mov ecx, dword [ebp - 0x18]
mov al, 1
mov dword [ecx], edi
jmp 0x408afb
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408dde
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x540698]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x541ad4]
push 0x16
lea ecx, [esi + 1]
lea eax, [esi + 2]
imul eax, ecx
mov ecx, esi
imul eax, ecx
cdq
pop esi
idiv esi
xor ebx, ebx
cmp edx, 1
jne 0x408e58
mov eax, ebx
push edi
mov dword [ebp - 0x50], eax
lea edi, [ebp - 0x44]
mov esi, ebx
mov eax, ecx
cdq
inc esi
idiv esi
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x54], esi
mov eax, ebx
mov dword [ebp - 0x58], edx
lea ecx, [eax + 1]
mov eax, ecx
cmp eax, 3
jl 0x408e2d
mov esi, dword [ebp - 0x54]
mov ecx, dword [0x541ad4]
add edi, 3
push 0
pop ebx
cmp esi, 7
jl 0x408e1c
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp eax, 3
jl 0x408e1a
pop edi
lea eax, [ebp - 0x48]
push eax
push 0x2001f
push ebx
push str.Software
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408ede
mov ecx, dword [0x541ad4]
push 0x18
lea eax, [ecx + 1]
imul eax, ecx
cdq
pop ecx
idiv ecx
cmp edx, 7
jne 0x408e99
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
push 5
push str.tempo
push 1
mov esi, str.Tempo
push esi
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
jne 0x408ec1
push esi
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov bl, 1
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00408f32
test al, al
jne 0x408ede
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x541ad4], eax
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004c29c4
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408fcc
test al, 0x10
je 0x408fcc
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x408fd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
mov eax, dword [0x540698]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x541ad4]
mov eax, esi
imul eax, esi
push 0x14
cdq
pop ecx
idiv ecx
mov ebx, dword [ebp + 8]
cmp edx, 0xa
jne 0x409029
xor ecx, ecx
push edi
push 8
mov edx, ecx
pop edi
mov eax, edx
and eax, 1
dec eax
not eax
and eax, esi
sar edx, 1
xor edx, eax
dec edi
jne 0x409006
add esi, edx
inc ecx
cmp ecx, 0x100
jl 0x409001
mov dword [0x541ad4], esi
pop edi
lea ecx, [esi + 1]
lea eax, [esi + 2]
imul eax, ecx
imul eax, esi
push 9
cdq
pop ecx
idiv ecx
cmp edx, 8
jne 0x40904d
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
lea eax, [ebp - 0x300]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
pop esi
pop ebx
cmp eax, 0xffffffff
je 0x40908d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.00409c8f
test al, al
jne 0x409089
call fcn.004c2f1b
mov ecx, dword [0x541ad4]
cmp ecx, eax
jne 0x409089
dec ecx
mov dword [0x541ad4], ecx
mov al, 1
jmp 0x40908f
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c29c4
leave
ret

Function at 0x40919f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00408fb0
pop ecx
test al, al
jne 0x4091e9
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4091e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4091ee
mov ecx, dword [0x541ad4]
mov eax, ecx
imul eax, ecx
push 0x13
cdq
pop esi
idiv esi
cmp edx, 0x12
jne 0x4091e9
inc ecx
mov dword [0x541ad4], ecx
mov al, 1
pop esi
pop ebp
ret
xor al, al
jmp 0x4091eb

Function at 0x409420
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push edi
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409446
xor eax, eax
jmp 0x409463
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x409b22
Capabilities:
Write file on windows

Disassembly:
push 0
mov eax, 0x4e58b0
call fcn.004c2a60
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 4
pop ecx
push ecx
push ebx
push ebx
push 0x40000000
push dword [eax]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x409b98
mov ecx, dword [0x541ad4]
mov eax, ecx
imul eax, ecx
push 0x16
cdq
pop esi
idiv esi
cmp edx, 0x12
jne 0x409be4
mov eax, ecx
push 0x64
cdq
pop ecx
idiv ecx
xor ecx, ecx
push 4
lea eax, [edx + 0x141]
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c0e30
push eax
call fcn.004c1c8e
pop ecx
pop ecx
jmp 0x409be4
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], ebx
mov esi, dword [eax - 0xc]
push ebx
lea ecx, [ebp + 0xc]
call fcn.00404f47
mov ecx, eax
push ebx
lea eax, [ebp + 8]
push eax
lea eax, [esi + esi]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 1
sete bl
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00404fef
mov al, bl
call fcn.004c2a2e
ret
Function at 0x409e4d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x540698]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edi
call fcn.00409c6d
push 4
pop ebx
test al, al
jne 0x409eac
mov esi, str.FxigOuEOgDyobE
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x14]
push eax
movsb byte es:[edi], byte [esi]
call fcn.004c22f0
xor ecx, ecx
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c0e30
push eax
call fcn.004c1c8e
mov edi, dword [ebp - 0x1c]
add esp, 0xc
xor bl, bl
call fcn.00409bf7
mov eax, dword [ebp - 0x18]
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x409f55
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [0x541ad4]
mov dword [ebp - 0x18], 0x12
lea eax, [ecx + 1]
imul eax, ecx
cdq
idiv dword [ebp - 0x18]
xor eax, eax
inc eax
cmp edx, 0x10
jne 0x409f0d
test ecx, ecx
cmove ecx, eax
mov dword [0x541ad4], ecx
mov eax, dword [edi]
and dword [ebp - 0x1c], 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409f4e
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov bl, 1
call fcn.00409cb1
test al, al
jne 0x409f4e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004c29c4
leave
ret
Function at 0x40a56b
Capabilities:
Encode data using xor

Disassembly:
push 8
mov eax, 0x4e322a
call fcn.004c2a60
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp + 8]
xor esi, esi
inc esi
push 0x4f6a98
mov dword [ebp - 4], esi
call fcn.004017e3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
mov esi, ebx
cmp dword [eax - 0xc], ebx
jle 0x40a5e4
push esi
lea ecx, [ebp + 0xc]
call fcn.00403b51
mov byte [ebp - 0x10], al
lea eax, [esi + 1]
push eax
lea ecx, [ebp + 0xc]
call fcn.00403b51
push 0x10
mov byte [ebp - 0xf], al
lea eax, [ebp - 0x10]
push ebx
push eax
mov byte [ebp - 0xe], bl
call fcn.004c4cc9
mov ecx, dword [ebp + 8]
xor al, 0xb0
cbw
movzx eax, ax
add esp, 0xc
push eax
call fcn.00409f96
mov eax, dword [ebp + 0xc]
add esi, 2
cmp esi, dword [eax - 0xc]
jl 0x40a59c
lea ecx, [eax - 0x10]
call fcn.00404fef
mov eax, dword [ebp + 8]
call fcn.004c2a2e
ret

Function at 0x40a90e
Capabilities:
Enumerate processes

Disassembly:
push 0x234
mov eax, 0x4e3250
call fcn.004c2a93
mov ebx, dword [ebp + 8]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a937
xor eax, eax
jmp 0x40aa36
push 0x22c
xor edi, edi
lea eax, [ebp - 0x23c]
push edi
push eax
call fcn.004c3990
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push esi
mov dword [ebp - 0x23c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40aa29
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
call fcn.00401824
and dword [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.00408eee
call fcn.0040ba21
test al, al
jne 0x40a9b0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0
push dword [ebp - 0x240]
mov ecx, ebx
call fcn.004039d8
test eax, eax
cmovns edi, dword [ebp - 0x234]
call fcn.0040b9db
test al, al
jne 0x40a9fe
mov eax, dword [0x541ad4]
push 0x64
cdq
pop ecx
idiv ecx
xor ecx, ecx
push 4
lea eax, [edx + 0x141]
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c0e30
push eax
call fcn.004c1c8e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x240]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00404fef
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x40aa29
test edi, edi
je 0x40a96d
test esi, esi
je 0x40aa34
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.004c2a42
ret
Function at 0x40b8ab
Capabilities:
Encode data using xor

Disassembly:
push 8
mov eax, 0x4e33de
call fcn.004c2a60
lea eax, [ebp + 8]
xor esi, esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call fcn.0040a90e
pop ecx
mov ebx, eax
call fcn.004c4df4
mov dword [ebp - 0x14], eax
call fcn.004c4df4
mov edi, eax
sub edi, dword [ebp - 0x14]
test ebx, ebx
je 0x40b966
push ebx
push esi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, eax
test ecx, ecx
je 0x40b966
mov eax, dword [ebp + 0xc]
sub eax, edi
xor edx, edx
cmp edi, dword [ebp + 0xc]
cmova eax, edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 8]
push eax
call fcn.0040a90e
mov ebx, eax
pop ecx
test ebx, ebx
je 0x40b929
cmp dword [ebp - 0x10], 0x102
jne 0x40b8d3
mov ecx, dword [0x541ad4]
mov eax, ecx
imul eax, ecx
push 7
cdq
pop edi
idiv edi
cmp edx, 5
jne 0x40b966
push 8
mov edx, esi
pop edi
mov eax, edx
and eax, 1
dec eax
not eax
and eax, ecx
sar edx, 1
xor edx, eax
dec edi
jne 0x40b944
add ecx, edx
inc esi
cmp esi, 0x100
jl 0x40b93f
mov dword [0x541ad4], ecx
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00404fef
mov eax, dword [ebp - 0x10]
call fcn.004c2a2e
ret
Function at 0x40ef28
Capabilities:
Encode data using xor

Disassembly:
push 0x50
mov eax, 0x4e3ac7
call fcn.004c2a93
mov ecx, dword [0x541ad4]
push 0xa
lea eax, [ecx + 1]
imul eax, ecx
cdq
pop esi
idiv esi
mov edi, dword [ebp + 8]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x2c], edi
cmp edx, 7
jne 0x40ef7f
xor esi, esi
push 8
mov edx, esi
pop edi
mov eax, edx
and eax, ebx
dec eax
not eax
and eax, ecx
sar edx, 1
xor edx, eax
dec edi
jne 0x40ef5b
add ecx, edx
inc esi
cmp esi, 0x100
jl 0x40ef56
mov edi, dword [ebp - 0x2c]
mov dword [0x541ad4], ecx
call fcn.0040bfc8
xor edx, edx
test al, al
mov ecx, ebx
cmovne ecx, edx
xor eax, eax
push eax
push eax
push eax
push ecx
push 0x4fa988
call fcn.0040fbe1
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x40efad
xor al, al
jmp 0x40f147
push 0
lea ecx, [ebp - 0x4c]
call fcn.004538eb
and dword [ebp - 4], 0
push 0x4f7094
lea ecx, [ebp - 0x3c]
call fcn.004538bc
lea eax, [ebp - 0x3c]
push eax
push str.method
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.00453c35
mov ecx, eax
call fcn.00453aee
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.00453a94
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.0046c361
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.0045381b
lea eax, [ebp - 0x3c]
push eax
push 0x4f7050
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.00453c35
mov ecx, eax
call fcn.00453aee
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00453a94
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0040102f
push 0x4f70ac
lea ecx, [ebp - 0x3c]
call fcn.004538bc
lea eax, [ebp - 0x3c]
push eax
push str.acceptedStatusCodes
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.00453c35
mov ecx, eax
call fcn.0045405d
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.00453a94
push 0x4f70c4
lea ecx, [ebp - 0x3c]
call fcn.004538bc
lea eax, [ebp - 0x3c]
push eax
push str.acceptTypes
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.00453c35
mov ecx, eax
call fcn.00453aee
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.00453a94
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0045396e
mov byte [ebp - 4], 6
lea eax, [ebp - 0x3c]
push eax
push str.noResponse
lea ecx, [ebp - 0x4c]
call fcn.00453c35
mov ecx, eax
call fcn.00453aee
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.00453a94
xor eax, eax
push eax
push eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.0040c9a3
add esp, 0x18
push esi
mov byte [ebp - 4], 7
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, str.result
push esi
lea ecx, [ebp - 0x5c]
call fcn.00453c35
mov ecx, eax
call fcn.004548d3
test al, al
je 0x40f12b
push esi
lea ecx, [ebp - 0x5c]
call fcn.00453c35
mov ecx, eax
call fcn.0045407f
test al, al
jne 0x40f12d
xor bl, bl
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0
call fcn.00453a94
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00453a94
mov al, bl
call fcn.004c2a42
ret