joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ad200
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov byte [ebp - 1], 0
test edi, edi
je 0x4ad226
push 0x22c
push 0
push edi
call fcn.004b03e0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
test ebx, ebx
je 0x4ad2b3
cmp ebx, 0xffffffff
je 0x4ad2b3
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.004b03e0
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4ad2ac
push esi
mov esi, dword [ebp + 8]
nop
cmp dword [ebp - 0x228], esi
je 0x4ad29a
lea edx, [ebp - 0x230]
push edx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4ad270
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x8b
lea esi, [ebp - 0x230]
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 1], 1
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ad370
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4ad3cd
cmp word [edi], 0
je 0x4ad3cd
push esi
push 0x410
call fcn.004412a0
mov esi, eax
add esp, 4
test esi, esi
je 0x4ad3c7
push 0x208
push esi
xor eax, eax
push edi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4ad3be
cmp eax, 0x208
jae 0x4ad3be
cmp word [esi], 0
je 0x4ad3be
mov eax, esi
pop esi
pop edi
pop ebp
ret
push esi
call fcn.00441300
add esp, 4
pop esi
xor eax, eax
pop edi
pop ebp
ret
xor eax, eax
pop edi
pop ebp
ret

Function at 0x4ad760
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov eax, 1
lea ecx, [esi + 0x48]
cmp dword [ecx], edx
je 0x4ad793
inc eax
add ecx, 4
cmp eax, 0xa
jb 0x4ad784
jmp 0x4ad79a
mov eax, dword [esi + eax*4 + 0x6c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [esi + 0x38], ecx
jle 0x4ad7d4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [ecx]
mov edx, dword [esi + 0x40]
push 0xa
push edx
call ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 8]
cmp edi, 0xffffffff
je 0x4ad7ca
cmp eax, edi
ja 0x4ad7d2
mov eax, dword [ebp - 4]
cmp dword [esi + 0x38], eax
jg 0x4ad7b0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4ad7e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
push esi
mov dword [ebp - 8], eax
call edi
test eax, eax
jne 0x4ad92b
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call edi
test eax, eax
jne 0x4ad92b
mov eax, dword [ebp - 4]
cmp dword [esi + 0x30], eax
je 0x4ad8ff
mov edi, dword [esi + 0x34]
test edi, edi
je 0x4ad8ff
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4ad8ff
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x34]
cmp edi, eax
jne 0x4ad8f1
xor edi, edi
cmp eax, edi
je 0x4ad877
mov dword [esi + 0x34], edi
cmp eax, 0xffffffff
je 0x4ad877
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [ebp - 0x38], edx
mov edx, dword [esi + 0xc]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x30], ecx
mov ecx, dword [esi + 0x14]
lea edx, [ebp - 0x38]
push edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [esi], ecx
mov ecx, dword [ebp - 0x14]
mov ebx, eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x6c]
cmp eax, edi
mov dword [esi + 0x44], edi
jle 0x4ad8eb
dec eax
mov dword [esi + 0x6c], eax
mov ecx, dword [ebp - 4]
mov dword [esi + 0x30], ecx
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x4ad92b
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 8]
cmp ecx, 0xffffffff
je 0x4ad91c
sub eax, dword [ebp - 8]
cmp eax, ecx
ja 0x4ad936
push esi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x4ad821
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4adc30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x4add99
mov eax, dword [ebp + 8]
test eax, eax
je 0x4add99
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
call esi
mov edi, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], edi
test eax, eax
je 0x4adc6e
push eax
call esi
mov ebx, eax
jmp 0x4adc70
xor ebx, ebx
lea eax, [ebx + edi]
lea eax, [eax + eax*2 + 0x20]
cmp eax, 0x400
jae 0x4adc86
lea edi, [ebp - 0x438]
jmp 0x4adc99
push eax
call fcn.004412a0
mov edi, eax
add esp, 4
test edi, edi
je 0x4add96
xor esi, esi
cmp byte [ebp + 0xc], 0
je 0x4adceb
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0xa]
movzx edx, word [ebp - 0xc]
movzx eax, word [ebp - 0xe]
push ecx
movzx ecx, word [ebp - 0x10]
push edx
push eax
push ecx
lea edx, [ebp - 0x38]
push str._i:_02i:_02i._03i
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push esi
lea ecx, [ebp - 0x38]
push ecx
push edi
call fcn.004b0bb0
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4add1e
cmp word [eax], 0
je 0x4add1e
push 0
push 0
lea edx, [ebx + ebx*2 + 1]
push edx
lea ecx, [esi + edi]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, 1
jle 0x4add1e
lea esi, [esi + eax - 1]
mov ecx, dword [ebp + 8]
cmp word [ecx], 0
je 0x4add50
mov eax, dword [ebp - 4]
push 0
push 0
lea edx, [eax + eax*2 + 1]
push edx
lea eax, [esi + edi]
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, 1
jle 0x4add50
lea esi, [esi + eax - 1]
cmp byte [ebp + 0x14], 0
je 0x4add6c
push 2
lea ecx, [esi + edi]
push 0x4dd6fc
push ecx
call fcn.004b0bb0
add esp, 0xc
add esi, 2
mov ebx, dword [ebp - 8]
mov byte [esi + edi], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4add96
push 0
lea edx, [ebp + 0xc]
push edx
push esi
push edi
push eax
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4adf10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4adfb0
cmp word [ebx], 0
je 0x4adfb0
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [edi + edi]
push eax
call fcn.004412a0
mov esi, eax
add esp, 4
test esi, esi
je 0x4adf86
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x4adf6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x4adf65
push esi
call fcn.00441300
add esp, 4
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
cmp eax, edi
jb 0x4adf65
lea edi, [eax + 1]
lea ecx, [edi + edi]
push ecx
push esi
call fcn.004412e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4adf8d
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4adf5a
cmp eax, edi
jb 0x4adf65
push esi
call fcn.00441300
add esp, 4
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x4adfc0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4ae05a
cmp word [eax], 0
je 0x4ae05a
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4ae059
cmp word [edi], 0
je 0x4ae059
push ebx
push esi
push 0x208
mov ebx, 0x104
call fcn.004412a0
push 0x25
push edi
mov esi, eax
call fcn.004b03ac
add esp, 0xc
test eax, eax
je 0x4ae03f
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebx
jbe 0x4ae035
push esi
lea ebx, [eax + 1]
call fcn.00441300
lea eax, [ebx + ebx]
push eax
call fcn.004412a0
add esp, 8
push ebx
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4ae03f
cmp eax, ebx
ja 0x4ae03f
mov edi, esi
mov ecx, dword [ebp + 8]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test esi, esi
je 0x4ae057
push esi
call fcn.00441300
add esp, 4
pop esi
pop ebx
pop edi
pop ebp
ret
Function at 0x4aedf0
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4aef25
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x104
jb 0x4aef25
xor eax, eax
push edi
mov word [esi], ax
call fcn.004ad0f0
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
cmp eax, 2
je 0x4aee80
cmp eax, 3
je 0x4aee80
push ebx
push esi
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4aee80
push esi
call fcn.004ad2c0
mov edi, eax
add esp, 4
test edi, edi
je 0x4aee79
push str.ConEmuC.exe
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4aee79
push str.ConEmuC64.exe
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4aee79
push 0
push esi
call fcn.004acca0
add esp, 8
test eax, eax
jne 0x4aee80
xor ecx, ecx
mov word [esi], cx
jmp 0x4aee86
cmp word [esi], 0
jne 0x4aeed9
lea edi, [ebx - 0x14]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jle 0x4aeed3
cmp eax, edi
jae 0x4aeed3
cmp dword [ebp + 8], 0
je 0x4aeeb9
cmp dword [ebp + 0x10], 2
jne 0x4aeeb9
cmp word [esi + eax*2 - 2], 0x5c
mov eax, str.SysWOW64cmd.exe
je 0x4aeecb
mov eax, 0x4e530c
jmp 0x4aeecb
cmp word [esi + eax*2 - 2], 0x5c
mov eax, str.System32cmd.exe
je 0x4aeecb
mov eax, 0x4e52c4
push eax
push ebx
push esi
call fcn.00401880
cmp word [esi], 0
je 0x4aeef5
push 0
push esi
call fcn.004acca0
add esp, 8
test eax, eax
jne 0x4aeeef
xor edx, edx
mov word [esi], dx
jmp 0x4aeef5
cmp word [esi], 0
jne 0x4aef1e
lea eax, [ebp + 8]
push eax
push esi
push ebx
push 0
push str.cmd.exe
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x4aef12
cmp eax, ebx
jb 0x4aef1e
push str.cmd.exe
push ebx
push esi
call fcn.00401800
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4af200
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0x104
lea eax, [ebp - 0x410]
push eax
push str.ComSpecC
call esi
test eax, eax
je 0x4af32f
cmp word [ebp - 0x410], 0
je 0x4af32f
push 0x104
lea edx, [ebp - 0x618]
push edx
xor ecx, ecx
push str.ComSpec
mov word [ebp - 0x208], cx
call esi
test eax, eax
jne 0x4af260
mov word [ebp - 0x618], ax
lea ecx, [ebp - 0x618]
push 0x5c
push ecx
call fcn.004b135e
mov esi, eax
add esp, 8
test esi, esi
jne 0x4af27f
lea esi, [ebp - 0x618]
jmp 0x4af282
add esi, 2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.ConEmuC.exe
push esi
call edi
test eax, eax
je 0x4af2a1
push str.ConEmuC64.exe
push esi
call edi
test eax, eax
jne 0x4af2f1
lea edx, [ebp - 0x410]
push 0x5c
push edx
call fcn.004b135e
mov esi, eax
add esp, 8
test esi, esi
jne 0x4af2c0
lea esi, [ebp - 0x410]
jmp 0x4af2c3
add esi, 2
push str.ConEmuC.exe
push esi
call edi
test eax, eax
je 0x4af2f1
push str.ConEmuC64.exe
push esi
call edi
test eax, eax
je 0x4af2f1
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.0040f0b0
add esp, 8
cmp word [ebp - 0x208], 0
pop edi
jne 0x4af312
push 0
lea edx, [ebp - 0x208]
push 0x104
push edx
call fcn.004aedf0
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea eax, [ebp - 0x208]
push eax
push str.ComSpec
call esi
push 0
push str.ComSpecC
call esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b4584
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ed478]
jne 0x4b458e
repz ret
jmp fcn.004b8c6f

Function at 0x4b9513
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.004b2edd
and dword [ebp - 4], 0
cmp dword [0x52445c], 0
mov ebx, eax
jne 0x4b95c4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4b9675
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4b9675
push eax
call fcn.004b2e6b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x52445c], eax
call esi
push eax
call fcn.004b2e6b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x524460], eax
call esi
push eax
call fcn.004b2e6b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x524464], eax
call esi
push eax
call fcn.004b2e6b
pop ecx
mov dword [0x52446c], eax
test eax, eax
je 0x4b95c4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004b2e6b
pop ecx
mov dword [0x524468], eax
mov eax, dword [0x524468]
cmp eax, ebx
je 0x4b961c
cmp dword [0x52446c], ebx
je 0x4b961c
push eax
call fcn.004b2ee6
push dword [0x52446c]
mov esi, eax
call fcn.004b2ee6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4b961c
test edi, edi
je 0x4b961c
call esi
test eax, eax
je 0x4b9613
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4b9613
test byte [ebp - 0xc], 1
jne 0x4b961c
or dword [ebp + 0x10], 0x200000
jmp 0x4b9655
mov eax, dword [0x524460]
cmp eax, ebx
je 0x4b9655
push eax
call fcn.004b2ee6
pop ecx
test eax, eax
je 0x4b9655
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4b9655
mov eax, dword [0x524464]
cmp eax, ebx
je 0x4b9655
push eax
call fcn.004b2ee6
pop ecx
test eax, eax
je 0x4b9655
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x52445c]
call fcn.004b2ee6
pop ecx
test eax, eax
je 0x4b9675
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4b9677
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x587739c5
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x783323c1
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x404260
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14c4
call fcn.0040a020
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x495368]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x49536c]
push esi
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], edx
call fcn.00404250
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x495370]
mov edx, dword [0x495374]
add edi, 0x23f
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea ecx, [ecx]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x49cafc]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x4042ec
mov dword [0x49caf8], 0xedeb2e40
jmp 0x404307
cmp eax, 0x3eb
jne 0x404307
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x49c588], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x49cafc], 0x9e6
mov dword [0x49caf4], 0xf4ea3dee
jne 0x404340
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x49cafc], 0x213
jne 0x4043e4
push 0
lea eax, [ebp - 0x4c4]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
lea ecx, [ebp - 0xcc4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x14c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommError]
lea ecx, [ebp - 0x8c4]
push ecx
push 0
push 0x403ed8
push 0x403f24
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea edx, [ebp - 0x28]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub ebx, dword [ebp - 4]
cmp dword [0x49cafc], 0xc
jne 0x4043f8
push 0
call dword [sym.imp.KERNEL32.dll_GlobalWire]
mov edx, ebx
shr edx, 5
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov eax, ebx
shl eax, 4
add eax, dword [ebp - 0x1c]
lea ecx, [edi + ebx]
xor eax, ecx
xor eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x4042c0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404450
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Get thread local storage value
Read pipe
Set environment variable
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1808
call fcn.0040a020
mov eax, dword [0x49cafc]
mov ecx, dword [0x49c58c]
shr eax, 3
test eax, eax
jbe 0x40456c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x49cafc], 0x959
jne 0x404552
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
call ebx
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [ebp - 0x1008]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x1808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404260
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404490
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406f90
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4945f8]
jne 0x406f9a
repz ret
jmp fcn.0040bc2e

Function at 0x40b855
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.00408c04
and dword [ebp - 4], 0
cmp dword [0x49a578], 0
mov ebx, eax
jne 0x40b906
push 0x401c4c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b9b7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401c40
push edi
call esi
test eax, eax
je 0x40b9b7
push eax
call fcn.00408b92
mov dword [esp], 0x401c30
push edi
mov dword [0x49a578], eax
call esi
push eax
call fcn.00408b92
mov dword [esp], 0x401c1c
push edi
mov dword [0x49a57c], eax
call esi
push eax
call fcn.00408b92
mov dword [esp], 0x401c00
push edi
mov dword [0x49a580], eax
call esi
push eax
call fcn.00408b92
pop ecx
mov dword [0x49a588], eax
test eax, eax
je 0x40b906
push 0x401be8
push edi
call esi
push eax
call fcn.00408b92
pop ecx
mov dword [0x49a584], eax
mov eax, dword [0x49a584]
cmp eax, ebx
je 0x40b95e
cmp dword [0x49a588], ebx
je 0x40b95e
push eax
call fcn.00408c0d
push dword [0x49a588]
mov esi, eax
call fcn.00408c0d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b95e
test edi, edi
je 0x40b95e
call esi
test eax, eax
je 0x40b955
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b955
test byte [ebp - 0xc], 1
jne 0x40b95e
or dword [ebp + 0x10], 0x200000
jmp 0x40b997
mov eax, dword [0x49a57c]
cmp eax, ebx
je 0x40b997
push eax
call fcn.00408c0d
pop ecx
test eax, eax
je 0x40b997
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b997
mov eax, dword [0x49a580]
cmp eax, ebx
je 0x40b997
push eax
call fcn.00408c0d
pop ecx
test eax, eax
je 0x40b997
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49a578]
call fcn.00408c0d
pop ecx
test eax, eax
je 0x40b9b7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b9b9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret