joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x414fb0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x41515a
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x18
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xd5
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0xf6
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x1b
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x51
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0xc2
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x73
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
sub byte [esi + ebx], 0x80
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xc3
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x63
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x2c
add esp, 0x40
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xed
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x31
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x29
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xbb
add esp, 0x30
inc esi
cmp esi, edi
jb 0x414fd0
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x453329
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45333a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405920
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49c7e2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c7f3
pop esi
ret
push ebx
push edi
push esi
call fcn.0049c6c9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fe9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c81b
push ebx
push esi
push edi
call fcn.00405713
add esp, 0xc
push 0
call fcn.00406262
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x401100
Capabilities:
Accept command line arguments
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
nop
nop

Function at 0x401170
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
call sym.___main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x4011fd
cmp al, 9
je 0x4011f0
cmp al, 0x20
je 0x4011f0
mov dword [ebp - 0x6c], 0
xor edi, edi
lea esi, [esi]
cmp al, 0x5c
je 0x401258
cmp al, 0x22
je 0x401260
mov dword [ebp - 0x6c], 0
movzx eax, byte [ebx + 1]
inc ebx
test al, al
je 0x4011fd
cmp al, 9
sete cl
cmp al, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x4011b0
test edi, 1
jne 0x4011b0
lea esi, [esi]
movzx eax, byte [ebx + 1]
inc ebx
cmp al, 9
je 0x4011f0
cmp al, 0x20
je 0x4011f0
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x30], 1
jne 0x401218
mov word [ebp - 0x2c], 1
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
inc dword [ebp - 0x6c]
jmp 0x4011c7
and dword [ebp - 0x6c], 1
jne 0x4011c0
xor edi, 1
jmp 0x4011c7
Function at 0x4018f8
Capabilities:
Encode data using xor

Disassembly:
call fcn.004017d9
mov ecx, 0x251
call 0x4018f8
rcr dword [esi + 0x30], 0x4c
push cs
pop es
xor byte [esi + ecx + 7], cl
loop 0x4018fb
mov eax, 0x504013d
out dx, al
clc
div esi
cmc
retf 0x3d52

Function at 0x406810
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x2b]
push 0xf64066e0
push esi
mov eax, dword [esi]
push eax
call fcn.004050fe
push esi
call 0xff5166e0
add esp, 0xffffff9c
pop esi
pop ebp
jbe 0x406836
add byte [eax + 0x34909090], dl
pop ecx
nop
xor al, 0x59
nop
nop
nop
nop
nop
nop
nop
push ebp
outsd dx, dword [esi]
in al, dx
sub esp, 0x533c10
push ebx
mov ebx, dword [ebp + 8]
and edx, dword [edi - 0x75]
inc ebx
add al, 0x40
clc
dec edx
je 0x6e4069ef
mov ecx, dword [ebx - 0x55]
inc edx
stc
je 0x4069ef
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 0x6e]
lea eax, [0x50525128]
call dword [sym.imp.WSOCK32.dll_connect]
cmp dword [ecx - 0x537af001], 1
add byte [eax], al
mov esi, dword [sym.imp.WSOCK32.dll_ioctlsocket]
call esi
test eax, eax
je 0x40c78a
call esi
invalid
mov eax, 0x97553
pop edi
pop esi
mov esp, 0xc264e58b
or byte [eax], al
arpl word [eax - 0x1374b070], dx
dec edi
mov ebp, esp
add byte [eax], al
invalid

Function at 0x408ab0
Capabilities:
Send data
Send data on socket

Disassembly:
pushfd
add byte [eax - 0x338170b], cl
sub eax, 0xcc44b56
pop ebp
test byte [eax - 0x1374aa70], dl
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
push esi
mov ebp, dword [ecx - 0x7b576f0]
mov ecx, dword [ebp + 0xa]
cmp al, 0
mov eax, dword [esi]
push 0
lea edx, [ebp - 4]
mov dword [ebp - 0xc], eax
push 0
push edx
mov ebp, dword [edx]
mov esi, 0x6af4458d
add dword [eax + 0x71], edx
mov dword [ebp - 4], 0xf05800
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x408b71
push edi
mov edi, dword [0xfe20c1d8]
call edi
test dword [eax + 0x75], ecx
or cl, byte [ecx - 0x741fa0fa]
retf
add byte [eax - 0x5390000], al
clc
add byte [ebx + 0x1578a143], ah
xchg esp, eax
rol dword [eax + 0x50], 0x83
clc
call [ebx + 0x3d2b572c]
fcom dword [ebx + 0x6d]
add bh, bh
xlatb
test dword [ebp + 0x6890a75], esp
push es
pop edi
pop esi
mov esp, ebp
pop ebp
pushfd
and eax, 0xc7d7d700
push es
add byte [eax], al
add byte [eax], al
pop edi
add eax, 0xefc80
pop esi
mov esp, ebp
add dl, al
or al, 0
mov edx, dword [ebx]
cld
mov dword [edi + 0x5e], ecx
imul dword [edi + edi*4]
shl byte [0xfffeee9f], 5
jle 0x408bd6
add dword [esi - 0x3df01a75], eax
or al, 0
nop
nop
nop
test eax, edi
in al, dx
push ecx
mov edx, dword [ecx + 8]
lea ebx, [ecx - 4]
shr byte [eax + 0x4c], 0x66
add al, 0x80
or byte [ebp + 0x68c0fc59], cl
dec esp
add al, 0x80
push ecx
mov dword [ebp - 0x72], 0xe9005e
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0x52
or bl, byte [esi]
mov esi, dword [di]
fcom dword [ebp - 0x2900fac0]
test eax, eax
jne 0x408c05
mov bh, 0x8b
in eax, 0x5d
or edi, edi
salc
call esi
add eax, 0x9f0afc9e
pop esi
mov esp, ebp
pop ebp
jbe 0x408b95
ror byte [ebx - 0x6f3ca21b], 0x6c
nop
nop
nop
nop
nop
nop
nop
Function at 0x412722
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41274e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4127eb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412815
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412790
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41281a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412815
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x8c212b
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x8c1ea3
pop edx
inc ecx
add ecx, ecx
call fcn.008c215a
sub ebx, ebx
mov ecx, 0xe82e3b52
xor dword [esi], edx
sub ebx, ecx
inc ebx
inc ebx
inc esi
sub ecx, ebx
cmp esi, eax
jne fcn.008c212b
sub ebx, ebx
ret
Function at 0x423de0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x423e72
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x423e64
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x423e5c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x423e25
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x423e80
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x423ec1.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x423ec1.2
jmp dword [eax*4 + 0x423f4c]
mov word [esp + 0x48], di
jmp 0x423efa
mov word [esp + 0x48], 2
jmp 0x423efa
mov word [esp + 0x48], 3
jmp 0x423efa
mov word [esp + 0x48], 4
jmp 0x423efa
mov word [esp + 0x48], 7
jmp 0x423efa
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x423f44
cmp dword [esp + 0x70], edi
je 0x423f30
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x5d8e83
Capabilities:
Encode data using xor

Disassembly:
push 0x5d8b64
pop ebx
sub edi, edx
sub edx, 1
call fcn.005d8eb6
mov edi, edx
xor dword [esi], ebx
add edi, edx
push 0x873834a
pop edx
inc edx
add esi, 2
dec edx
add edi, edx
dec edi
cmp esi, eax
jl fcn.005d8e83
mov edx, edi
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40de38
mov ecx, 0x46d34a55
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x254d61fb
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4ca25f
Capabilities:
Encode data using xor

Disassembly:
push 0x4c9fca
pop edx
sub edi, 0xbfb31194
mov edi, 0x97299dd3
call fcn.004ca29a
mov ebx, 0xfdfb627c
xor dword [eax], edx
or ebx, ebx
mov edi, 0x35972744
inc eax
add ebx, edi
mov ebx, 0x2e5f01da
sub edi, 0x6b3db4b2
cmp eax, ecx
jne fcn.004ca25f
mov ebx, edi
ret
Function at 0x4a9961
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4de034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4a99ac
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a9e23
test al, al
jne 0x4a99a6
sub edx, 2
cmp edx, edi
jne 0x4a998c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a99ce
lea eax, [edi + 2]
cmp edx, eax
je 0x4a99ce
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a955a
add esp, 0x10
jmp 0x4a9ac8
push esi
lea ecx, [ebp - 0x255]
call fcn.004a9e23
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a9a11
push dword [ebp - 0x25c]
jmp 0x4a99be
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4a9a4e
cmp word [ebp - 0x226], 0
je 0x4a9a6f
cmp word [ebp - 0x226], ax
jne 0x4a9a4e
cmp word [ebp - 0x224], 0
je 0x4a9a6f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a955a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a9abb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a9a28
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a9aa3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a9ac8
push 0x4a8f42
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405bd7
add esp, 0x10
jmp 0x4a9a98
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040335a
leave
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x414fb0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x41515a
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
sub byte [esi + ebx], 0x68
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xf
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x8c
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xbb
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x1b
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0x6b
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xb6
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x40
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x8c
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xe
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x5c
add esp, 0x40
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x4d
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0xab
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x63
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x39
add esp, 0x30
inc esi
cmp esi, edi
jb 0x414fd0
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x453329
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45333a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405920
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49c7e2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c7f3
pop esi
ret
push ebx
push edi
push esi
call fcn.0049c6c9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fe9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c81b
push ebx
push esi
push edi
call fcn.00405713
add esp, 0xc
push 0
call fcn.00406262
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x4030f0
Capabilities:
Create directory
Create process on windows
Extract resource via kernel32 functions
Write and execute a file
Write file on windows

Disassembly:
cmp dword [eax + 0x18], 0x10
push esi
push edi
mov edi, dword [eax + 0x14]
jb 0x4030b0
mov ecx, dword [eax + 4]
jmp 0x4030b3
lea ecx, [eax + 4]
mov esi, dword [edx + 0x14]
cmp esi, edi
mov eax, esi
jb 0x4030be
mov eax, edi
cmp dword [edx + 0x18], 0x10
jb 0x4030c9
mov edx, dword [edx + 4]
jmp 0x4030cc
add edx, 4
call fcn.00401700
test eax, eax
jne 0x4030ef
cmp esi, edi
jae 0x4030e8
or eax, 0xffffffff
xor ecx, ecx
test eax, eax
setl cl
pop edi
mov al, cl
pop esi
ret
xor eax, eax
cmp esi, edi
setne al
xor ecx, ecx
test eax, eax
setl cl
pop edi
mov al, cl
pop esi
ret

Function at 0x4034b0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx + 4]
push ebp
mov ebp, dword [esp + 0x28]
push esi
mov esi, dword [eax + 4]
cmp byte [esi + 0x45], 0
push edi
mov edi, eax
mov al, 1
mov byte [esp + 0x10], al
jne 0x4034ae
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
jmp 0x403438
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
cmp dword [esi + 0x24], 0x10
mov ebx, dword [esi + 0x20]
mov dword [esp + 0x20], esi
jb 0x40344a
mov ecx, dword [esi + 0x10]
jmp 0x40344d
lea ecx, [esi + 0x10]
mov edi, dword [esp + 0x18]
cmp eax, edi
mov dword [esp + 0x30], ecx
jae 0x40345b
mov edi, eax
cmp edi, ebx
mov eax, edi
jb 0x403463
mov eax, ebx
add edx, 4
cmp dword [esp + 0x1c], 0x10
jb 0x40346f
mov edx, dword [edx]
mov ecx, dword [esp + 0x30]
call fcn.00401700
test eax, eax
jne 0x40348e
cmp edi, ebx
jae 0x403485
or eax, 0xffffffff
jmp 0x40348c
xor eax, eax
cmp edi, ebx
setne al
test eax, eax
setl al
test al, al
mov byte [esp + 0x10], al
je 0x40349d
mov esi, dword [esi]
jmp 0x4034a0
mov esi, dword [esi + 8]
cmp byte [esi + 0x45], 0
je 0x403430
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
test al, al
mov esi, edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebx
je 0x4034ff
mov edx, dword [ebx + 4]
cmp edi, dword [edx]
jne 0x4034f2
mov eax, dword [esp + 0x34]
push eax
push 1
lea ecx, [esp + 0x28]
push ecx
push ebx
mov ecx, edi
call fcn.00403560
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 4], eax
mov dword [ebp], edx
mov byte [ebp + 8], 1
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
lea esi, [esp + 0x20]
call fcn.00403d50
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
lea edx, [esi + 0xc]
call fcn.004030a0
test al, al
je 0x403541
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x28]
push eax
push ebx
mov ecx, edi
call fcn.00403560
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp], ecx
mov dword [ebp + 4], edx
mov byte [ebp + 8], 1
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
mov eax, dword [esp + 0x20]
pop edi
mov dword [ebp + 4], esi
mov dword [ebp], eax
pop esi
mov byte [ebp + 8], 0
mov eax, ebp
pop ebp
pop ebx
add esp, 0x18
ret 0xc