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

Disassembly:
cmp ecx, dword [0x43c5f8]
jne 0x40b548
repz ret
jmp fcn.0040dfbb

Function at 0x40ca73
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43c5f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004080fd
and dword [ebp - 0x14], 0
cmp dword [0x440718], 0
mov dword [ebp - 0x18], eax
jne 0x40cb26
push 0x4023d4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40cbce
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4023c8
push ebx
call edi
test eax, eax
je 0x40cbce
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4023b8
push ebx
mov dword [0x440718], eax
call edi
push eax
call esi
push 0x4023a4
push ebx
mov dword [0x44071c], eax
call edi
push eax
call esi
push 0x402388
push ebx
mov dword [0x440720], eax
call edi
push eax
call esi
mov dword [0x440728], eax
test eax, eax
je 0x40cb26
push 0x402370
push ebx
call edi
push eax
call esi
mov dword [0x440724], eax
mov eax, dword [0x440724]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40cb7f
cmp dword [0x440728], ecx
je 0x40cb7f
push eax
call esi
push dword [0x440728]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40cb7f
test ebx, ebx
je 0x40cb7f
call edi
test eax, eax
je 0x40cb76
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40cb76
test byte [ebp - 8], 1
jne 0x40cb7f
or dword [ebp + 0x10], 0x200000
jmp 0x40cbb2
mov eax, dword [0x44071c]
cmp eax, dword [ebp - 0x18]
je 0x40cbb2
push eax
call esi
test eax, eax
je 0x40cbb2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40cbb2
mov eax, dword [0x440720]
cmp eax, dword [ebp - 0x18]
je 0x40cbb2
push eax
call esi
test eax, eax
je 0x40cbb2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x440718]
call esi
test eax, eax
je 0x40cbce
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40cbd0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b53e
leave
ret
Function at 0x4239a0
Capabilities:
Accept command line arguments
Delete directory
Get common file path

Disassembly:
mov eax, 0x1020
call fcn.0040df90
cmp dword [0x258faa4], 0x37
jne 0x423a68
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x403440
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
mov eax, dword [esp]
push 0
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
push 0
lea ecx, [esp + 0x424]
push ecx
push 0x403450
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea edx, [esp + 0x824]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 4]
push eax
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea edx, [esp + 8]
push edx
push 0x4034a8
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
lea eax, [esp + 0x20]
push eax
push 0
push 0x4034b0
push 0x4034c0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0x403510
push 0x403570
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
mov ecx, dword [0x258faa8]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x445834]
mov byte [ecx + esi], al
add esp, 0x1020
ret

Function at 0x423a90
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x60
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx]
mov edx, dword [0x43d368]
push ebx
push ebp
mov ebp, dword [0x43d364]
push esi
mov esi, dword [ecx + 4]
mov ecx, dword [0x43d360]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x43d36c]
push edi
mov dword [esp + 0x14], eax
mov ebx, 0xc6ef3720
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 0x20
jmp 0x423adb
mov eax, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [esp + 0x1c]
shl ecx, 4
add ecx, dword [esp + 0x20]
add eax, ebx
xor edx, ecx
xor edx, eax
sub esi, edx
mov ecx, esi
shl ecx, 4
mov dword [0x2585a54], 0
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x24]
add dword [esp + 0x10], eax
cmp dword [0x258faa4], 0x1be
lea edi, [ebx + esi]
jne 0x423b30
lea edx, [esp + 0x28]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, esi
shr eax, 5
add eax, ebp
xor eax, edi
xor dword [esp + 0x10], eax
mov dword [0x2585a58], 0xff6b3619
mov dword [0x2585a5c], 0xffffffff
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
mov eax, dword [0x258faa4]
cmp eax, 0x93
je 0x423b6b
add ebx, 0x61c88647
dec dword [esp + 0x18]
jne 0x423ad7
cmp eax, 0x8d4
jne 0x423b9e
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0x60
ret 4
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x60
ret 4
Function at 0x423c20
Capabilities:
Manipulate console buffer

Disassembly:
push ecx
mov eax, dword [0x258faa4]
shr eax, 3
push esi
mov esi, dword [0x445834]
test eax, eax
je 0x423c64
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push edi
mov edi, eax
mov edi, edi
cmp dword [0x258faa4], 0x1c
jne 0x423c56
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
call ebx
push esi
call fcn.00423a90
add esi, 8
dec edi
jne 0x423c40
pop edi
pop ebx
pop esi
pop ecx
ret
Function at 0x407bff
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], 0x29c27be8
add dword [ebp - 8], 0x4196
mov byte [ebp - 1], 1
lea edi, [ebp - 0x1c]
lea esi, [0x42e63e]
mov ecx, 0x11
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 8]
mov edx, eax
sub edx, eax
mov dword [ebp - 8], edx
lea edi, [ebp - 0x2b]
lea esi, [0x42e64f]
mov ecx, 0xf
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x32]
lea esi, [0x42e65e]
mov ecx, 7
rep movsb byte es:[edi], byte [esi]
sub dword [ebp - 8], 0x6151
cmp byte [ebx], 0x67
jne 0x407c7a
inc ebx
add byte [ebp - 1], 1
mov eax, dword [ebp - 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
mul dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov dword [ebp - 8], eax
mov byte [ebp - 9], 0
jmp 0x407c96
mov al, byte [ebx]
movzx edx, byte [ebp - 9]
cmp al, byte [ebp + edx - 0x1c]
jne 0x407c92
add byte [ebp - 1], 4
jmp 0x407c9c
add byte [ebp - 9], 1
cmp byte [ebp - 9], 0x11
jb 0x407c80
xor dword [ebp - 8], 0x774b
mov byte [ebp - 0xa], 0
jmp 0x407d57
mov al, byte [ebx]
movzx edx, byte [ebp - 0xa]
cmp al, byte [ebp + edx - 0x2b]
jne 0x407d53
add byte [ebp - 1], 1
mov eax, 0x67c6
mul dword [ebp - 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 8], eax
movzx eax, byte [ebx + 1]
cmp eax, 0xc0
jge 0x407d38
movzx eax, byte [ebx + 1]
and eax, 0xc0
cmp eax, 0x40
jne 0x407ceb
add byte [ebp - 1], 1
movzx eax, byte [ebx + 1]
mov edx, eax
and edx, 7
cmp edx, 4
je 0x407d03
cmp edx, 5
jne 0x407d07
cmp eax, 0x40
jge 0x407d07
add byte [ebp - 1], 1
sub dword [ebp - 8], 0x251a
movzx eax, byte [ebx + 1]
test byte [ebx + 1], 0xc0
jne 0x407d24
and eax, 7
cmp eax, 5
jne 0x407d24
add byte [ebp - 1], 3
movzx eax, byte [ebx + 1]
and eax, 0xc0
cmp eax, 0x80
jne 0x407d38
add byte [ebp - 1], 4
movzx eax, byte [ebx]
cmp eax, 0xf7
jne 0x407d4c
test byte [ebx + 1], 0x38
jne 0x407d4c
add byte [ebp - 1], 4
sub dword [ebp - 8], 0x2d1d
add byte [ebp - 0xa], 1
cmp byte [ebp - 0xa], 0xf
jb 0x407cac
mov byte [ebp - 0xb], 0
jmp 0x407d7d
mov al, byte [ebx]
movzx edx, byte [ebp - 0xb]
cmp al, byte [ebp + edx - 0x32]
jne 0x407d79
add byte [ebp - 1], 1
jmp 0x407d83
add byte [ebp - 0xb], 1
cmp byte [ebp - 0xb], 7
jb 0x407d67
mov eax, 0x7d5b
mul dword [ebp - 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 8], eax
movzx eax, byte [ebx]
cmp eax, 0x83
jne 0x407d9f
add byte [ebp - 1], 1
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc5c
mov eax, dword [0x416004]
xor eax, esp
mov dword [esp + 0xc58], eax
push ebx
push esi
push edi
push 0x400
lea eax, [esp + 0x464]
mov ebx, ecx
push 0
push eax
mov dword [esp + 0x18], ebx
call fcn.00402980
push 0x400
lea eax, [esp + 0x870]
push 0
push eax
call fcn.00402980
push ebx
lea eax, [esp + 0x87c]
push 0x200
push eax
call fcn.00404f57
push ebx
lea eax, [esp + 0x488]
push 0x200
push eax
call fcn.00404f57
push str..
lea eax, [esp + 0x494]
push 0x200
push eax
call fcn.00404f4c
add esp, 0x3c
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [eax]
mov edx, 0x414048
lea ecx, [esp + 0x3c]
nop dword [eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4010e6
test ax, ax
je 0x4010e2
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x4010e6
add ecx, 4
add edx, 4
test ax, ax
jne 0x4010c0
xor eax, eax
jmp 0x4010eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x40122c
mov eax, 0x41404c
lea ecx, [esp + 0x3c]
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x401126
test dx, dx
je 0x401122
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x401126
add ecx, 4
add eax, 4
test dx, dx
jne 0x401100
xor eax, eax
jmp 0x40112b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40122c
test byte [esp + 0x10], 0x10
je 0x4011c4
push 0x200
lea eax, [esp + 0x264]
push 0
push eax
call fcn.00402980
push dword [esp + 0x18]
lea eax, [esp + 0x270]
push pe_nt_image_headers32
push eax
call fcn.00404f57
push 0x414054
lea eax, [esp + 0x27c]
push pe_nt_image_headers32
push eax
call fcn.00404f4c
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x288]
push pe_nt_image_headers32
push eax
call fcn.00404f4c
add esp, 0x30
lea ecx, [esp + 0x260]
call section..text
push 0x80
lea eax, [esp + 0x264]
push eax
call edi
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40122c
lea eax, [esp + 0x860]
push eax
lea eax, [esp + 0x464]
push 0x200
push eax
call fcn.00404f57
push 0x414054
lea eax, [esp + 0x470]
push 0x200
push eax
call fcn.00404f4c
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x47c]
push 0x200
push eax
call fcn.00404f4c
add esp, 0x24
lea eax, [esp + 0x460]
push 0x80
push eax
call edi
lea eax, [esp + 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
jne 0x4010b0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0xc64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004018d8
mov esp, ebp
pop ebp
ret
Function at 0x4072e5
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x416004]
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 0x407330
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00407506
test al, al
jne 0x40732a
sub edx, 2
cmp edx, edi
jne 0x407310
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x407352
lea eax, [edi + 2]
cmp edx, eax
je 0x407352
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00407231
add esp, 0x10
jmp 0x40744c
push esi
lea ecx, [ebp - 0x255]
call fcn.00407506
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 0x407395
push dword [ebp - 0x25c]
jmp 0x407342
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 0x4073d2
cmp word [ebp - 0x226], 0
je 0x4073f3
cmp word [ebp - 0x226], ax
jne 0x4073d2
cmp word [ebp - 0x224], 0
je 0x4073f3
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00407231
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40743f
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4073ac
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x407427
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40744c
push 0x407061
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040a550
add esp, 0x10
jmp 0x40741c
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.004018d8
leave
ret

Function at 0x407f8d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x407f9e
pop esi
ret
push ebx
push edi
push esi
call fcn.00407f56
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00408b6d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x407fc6
push ebx
push esi
push edi
call fcn.00403610
add esp, 0xc
push 0
call fcn.00407027
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40838a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00407fdb
Function at 0x4094b5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410fcc
push 0x410fc4
push str.FlsAlloc
push 0x1e
call fcn.00409395
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4094e9
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f150]
call esi
jmp 0x4094ef
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x409533
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410fdc
push 0x410fd4
push str.FlsGetValue
push 0x20
call fcn.00409395
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40956a
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x401000
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4221a8]
xor eax, esp
mov dword [esp + 0x94], eax
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.004068a0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x401063
jne 0x40104c
cmp dword [esp + 8], 1
jae 0x401063
xor eax, eax
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0040688e
add esp, 0x98
ret
mov ecx, dword [esp + 0x94]
xor ecx, esp
mov eax, 1
call fcn.0040688e
add esp, 0x98
ret

Function at 0x402090
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.00406920
mov eax, dword [0x4221a8]
xor eax, esp
mov dword [esp + 0x2000], eax
mov eax, dword [esp + 0x2008]
push 0x1000
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x402103
push 0x1000
lea edx, [esp + 0x1004]
push edx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x402103
lea ecx, [esp]
push ecx
call fcn.00407836
add esp, 4
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0040688e
add esp, 0x2004
ret
mov ecx, dword [esp + 0x2000]
xor ecx, esp
xor eax, eax
call fcn.0040688e
add esp, 0x2004
ret

Function at 0x402150
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4014
call fcn.00406920
mov eax, dword [0x4221a8]
xor eax, esp
mov dword [esp + 0x4010], eax
push ebx
mov ebx, dword [esp + 0x401c]
push esi
push edi
lea eax, [esp + 0x1c]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x1000
lea ecx, [esp + 0x2020]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0x1000
lea eax, [esp + 0x2020]
push eax
push ebx
call fcn.00403470
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
lea ecx, [esp + 0x1c]
push str._MEI_d
push ecx
call fcn.00407406
add esp, 0x18
xor edi, edi
lea edx, [esp + 0xc]
push edx
push ebx
call fcn.004078b2
mov esi, eax
push esi
call fcn.00407886
add esp, 0xc
test eax, eax
je 0x40220c
push esi
call fcn.00407266
add edi, 1
add esp, 4
cmp edi, 5
jl 0x4021c7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4010]
xor ecx, esp
call fcn.0040688e
add esp, 0x4014
ret
mov edx, ebx
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x402212
push esi
call fcn.00407266
mov ecx, dword [esp + 0x4020]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040688e
add esp, 0x4014
ret
Function at 0x402670
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.00406920
mov eax, dword [0x4221a8]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push ebx
mov ebx, dword [esp + 0x1014]
push esi
push edi
mov edi, dword [esp + 0x1018]
push 0x41b4d8
push eax
call fcn.00403ac0
push ebx
push edi
mov esi, eax
call fcn.00402510
add esp, 0x10
xor ebx, ebx
test esi, esi
mov edi, eax
je 0x402765
test edi, edi
je 0x402765
push esi
call fcn.004082e0
add esp, 4
test eax, eax
jne 0x40273c
push esi
push 1
lea eax, [esp + 0x14]
push 0x1000
push eax
call fcn.004085da
add esp, 0x10
cmp eax, 0xffffffff
jne 0x402702
push esi
call fcn.0040830f
add esp, 4
test eax, eax
je 0x402721
push esi
jmp 0x402731
push edi
push 1
lea ecx, [esp + 0x14]
push 0x1000
push ecx
call fcn.0040825e
push edi
call fcn.0040830f
add esp, 0x14
test eax, eax
jne 0x402730
push esi
call fcn.004082e0
add esp, 4
test eax, eax
je 0x4026d8
jmp 0x40273c
push edi
call fcn.004080fa
add esp, 4
or ebx, 0xffffffff
push esi
call fcn.00407fd2
push edi
call fcn.00407fd2
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0040688e
add esp, 0x1004
ret
mov ecx, dword [esp + 0x100c]
pop edi
pop esi
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.0040688e
add esp, 0x1004
ret
Function at 0x4027a0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x2068
call fcn.00406920
mov eax, dword [0x4221a8]
xor eax, esp
mov dword [esp + 0x2064], eax
mov eax, dword [esp + 0x206c]
push esi
push 0x1000
push eax
lea eax, [esp + 0x70]
xor esi, esi
push eax
mov dword [esp + 0x10], esi
call fcn.00403440
push 1
push 0x16
call fcn.00408ab5
push 1
push 2
call fcn.00408ab5
push 1
push 0xf
call fcn.00408ab5
push 1
push 0x15
call fcn.00408ab5
add esp, 0x2c
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0xc], 0xc
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x50], 0x101
mov word [esp + 0x54], 1
call fcn.00407695
push eax
call fcn.00407668
push eax
call fcn.004086f3
mov dword [esp + 0x64], eax
call fcn.00407695
add eax, 0x20
push eax
call fcn.00407668
push eax
call fcn.004086f3
mov dword [esp + 0x70], eax
call fcn.00407695
add eax, 0x40
push eax
call fcn.00407668
push eax
call fcn.004086f3
add esp, 0x18
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x68], eax
lea eax, [esp + 0x28]
push eax
push esi
push esi
push esi
push 1
push esi
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea edx, [esp + 0x8c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop esi
je 0x4028e2
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x10]
lea ecx, [esp]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp]
mov ecx, dword [esp + 0x2064]
xor ecx, esp
call fcn.0040688e
add esp, 0x2068
ret
push str.Error_creating_child_process__n
call fcn.00401280
mov ecx, dword [esp + 0x2068]
add esp, 4
xor ecx, esp
or eax, 0xffffffff
call fcn.0040688e
add esp, 0x2068
ret
Function at 0x402f90
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 4]
push edi
push 0
push eax
call sub.WS2_32.dll_ntohl
mov ebx, dword [esp + 0x14]
add eax, dword [ebx + 4]
mov ecx, dword [ebx]
push eax
push ecx
call fcn.00408f29
mov edx, dword [esi + 8]
add esp, 0xc
push edx
call sub.WS2_32.dll_ntohl
push eax
call fcn.00407343
mov edi, eax
add esp, 4
test edi, edi
jne 0x402fe0
push str.Could_not_allocate_read_buffer_n
call fcn.004012f0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ebx]
mov ecx, dword [esi + 8]
push eax
push 1
push ecx
call sub.WS2_32.dll_ntohl
push eax
push edi
call fcn.004085da
add esp, 0x10
cmp eax, 1
jae 0x403010
push str.Could_not_read_from_file_n
call fcn.004012f0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
cmp byte [esi + 0x10], 1
jne 0x403044
push edi
call fcn.00402ea0
push edi
mov ebx, eax
call fcn.00407266
add esp, 8
test ebx, ebx
mov edi, ebx
jne 0x403044
add esi, 0x12
push esi
push str.Error_decompressing__s_n
call fcn.004012f0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x403050
Capabilities:
Write file on windows

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
push edi
push esi
call fcn.00402f90
push esi
mov ebp, eax
call fcn.00402250
add esp, 0xc
cmp eax, 0xffffffff
jne 0x403078
pop edi
pop esi
or eax, eax
pop ebp
ret
push ebx
lea ebx, [edi + 0x12]
push ebx
add esi, 0x2068
push esi
call fcn.00402510
mov esi, eax
add esp, 8
test esi, esi
jne 0x4030a8
push ebx
push str._s_could_not_be_extracted__n
call fcn.00401280
add esp, 8
pop ebx
pop edi
pop esi
or eax, 0xffffffff
pop ebp
ret
mov eax, dword [edi + 0xc]
push esi
push 1
push eax
call sub.WS2_32.dll_ntohl
push eax
push ebp
call fcn.0040825e
push esi
call fcn.00407fd2
push ebp
call fcn.00407266
add esp, 0x18
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
ret

Function at 0x4030e0
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esi]
push 0
add eax, 0xffffffa8
push eax
push ecx
call fcn.00408f29
add esp, 0xc
test eax, eax
je 0x4030f9
or eax, 0xffffffff
ret
mov edx, dword [esi]
push edi
push edx
push 1
lea edi, [esi + 0x10]
push 0x58
push edi
call fcn.004085da
add esp, 0x10
cmp eax, 1
jae 0x403117
or eax, 0xffffffff
pop edi
ret
push 8
push str.MEI_f_v_n_v
push edi
call fcn.00408fae
add esp, 0xc
neg eax
sbb eax, eax
pop edi
ret