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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [ebp + 8]
mov word [esp + 0x36], 0x3d0a
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov word [esp + 0x1a], 0x6abd
cmp dword [ebp + 8], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
je 0x10001518
jmp 0x10001539
call fcn.100068b0
mov dword [esp + 8], eax
call fcn.10006520
mov word [esp + 0x2e], 0x1d1e
mov dword [esp + 0x1c], 0
mov dword [esp + 4], eax
mov ax, word [esp + 0x36]
mov cx, word [esp + 0x2e]
xor cx, word [esp + 0x2e]
add ax, 0x4402
mov word [esp + 0x2e], cx
cmp word [esp + 0x1a], ax
ja 0x100014f7
jmp 0x10001531
mov dword [esp + 0x1c], 0
mov ax, word [esp + 0x2e]
or ax, word [esp + 0x2e]
mov word [esp + 0x2e], ax
jmp 0x100014f7
mov eax, dword [esp + 0x1c]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
cmp eax, 0
je 0x10001518
jmp 0x100014d6

Function at 0x100051e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
lea eax, [fcn.100051e0]
mov dword [esp + 8], 0x67f92c20
mov dword [esp + 4], eax
jmp 0x1000526d
mov eax, dword [esp]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 4]
mov dword [esp], eax
jmp 0x100051ff
mov dword [esp], 0
jmp 0x100051ff
mov ax, word [esp + 0x1e]
mov word [esp + 0x1e], ax
mov ecx, dword [esp + 8]
xor ecx, 0x67f93c20
imul edx, dword [esp + 0x18], 0x33fdbafb
mov esi, dword [esp + 4]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 8]
add edx, 0x9806c3e0
sub esi, ecx
mov dword [esp + 0x18], 0x41e3d35d
mov ax, word [esp + 0x1e]
mov di, word [esp + 0x1e]
and esi, edx
or ax, di
mov word [esp + 0x1e], ax
mov dword [esp + 4], esi
jmp 0x100052b7
mov eax, dword [esp + 4]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x1000521b
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x10]
xor ecx, 0x4158c2dc
mov dword [esp + 0x10], ecx
mov dl, byte [esp + 0xf]
add dl, byte [esp + 0xf]
mov eax, dword [eax + 0x3c]
mov ecx, dword [esp + 4]
mov eax, dword [ecx + eax]
mov byte [esp + 0xf], dl
mov word [esp + 0x1e], 0xf969
cmp eax, 0x4550
je 0x10005209
jmp 0x100052c2
mov al, 1
test al, 1
jne 0x1000526d
jmp 0x10005212
jmp 0x1000521b
Function at 0x100012d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x1000d8cb
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x10015070]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10015070]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [esp + 0x154]
push eax
mov word [esp + 0x159], 0x7265
mov byte [esp + 0x158], 0x4b
mov word [esp + 0x160], 0x642e
mov word [esp + 0x163], 0x6c
mov dword [esp + 0x15c], 0x32336c65
mov byte [esp + 0x15b], 0x6e
mov byte [esp + 0x162], 0x6c
mov word [esp + 0x174], 0x74
mov dword [esp + 0x16b], 0x73736563
mov dword [esp + 0x16f], 0x654e3233
mov word [esp + 0x168], 0x7250
mov byte [esp + 0x16a], 0x6f
mov byte [esp + 0x173], 0x78
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100014b0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea eax, [esp + 0x164]
push eax
push edi
call esi
push 0x100132c4
push edi
mov ebp, eax
call esi
test ebp, ebp
je 0x100014a9
test eax, eax
je 0x100014a9
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
push 0
push 2
mov dword [esp + 0x188], 0
call eax
mov esi, eax
cmp esi, 0xffffffff
je 0x1000141e
lea eax, [esp + 0x2c]
push eax
push esi
mov dword [esp + 0x34], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x10001430
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x14]
call fcn.10002b90
jmp 0x100014b0
cmp byte [esp + 0x50], 0
jne 0x1000143b
xor eax, eax
jmp 0x10001448
lea eax, [esp + 0x50]
push eax
call fcn.10005fc0
add esp, 4
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x1c]
call fcn.10002f30
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
inc eax
add eax, edx
push eax
mov ecx, ebx
call fcn.10002bc0
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.10002c00
lea eax, [esp + 0x2c]
push eax
push esi
call ebp
test eax, eax
jne 0x10001430
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x14]
call fcn.10002b90
mov al, 1
jmp 0x100014b2
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.10003b9b
add esp, 0x170
ret
Function at 0x10002660
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x10015070]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [0x10016db0], eax
mov eax, dword [ebp + 0x14]
mov dword [0x10016dac], eax
mov eax, dword [ebp + 0x10]
mov dword [0x10016da8], eax
mov eax, dword [ebp + 8]
mov dword [0x10016db4], eax
call fcn.100026d0
lea ecx, [esp + 4]
mov dword [esp + 8], 0x65746164
mov dword [esp + 4], 0x70557250
mov dword [esp + 0xe], 0x657865
mov word [esp + 0xc], 0x2e72
call fcn.10002770
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10003b9b
mov esp, ebp
pop ebp
ret

Function at 0x100026d0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x24
mov eax, dword [0x10015070]
xor eax, esp
mov dword [esp + 0x1c], eax
lea eax, [esp]
push eax
push 0x20
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000274a
lea eax, [esp + 4]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1000274a
mov eax, dword [esp + 4]
push 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
push 0
push 0x10
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x14]
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10003b9b
add esp, 0x24
ret
Function at 0x10003690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0
mov ecx, 0x10015f6c
mov dword [esp + 0x14], ebx
call fcn.10003b09
mov edi, eax
mov ebp, 1
test edi, edi
je 0x10003740
mov eax, ebx
shr eax, 4
mov dword [esp + 0x14], eax
inc eax
push 0
movzx eax, ax
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
je 0x1000371e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000371e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000371e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10003714
cmp esi, edx
jae 0x1000371e
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x10003704
cmp esi, edx
jae 0x1000371e
cmp word [esi], 0
jne 0x10003736
push ebp
mov ecx, 0x10015f6c
call fcn.10003b09
mov edi, eax
inc ebp
test edi, edi
je 0x10003740
mov eax, dword [esp + 0x14]
jmp 0x100036c1
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x10003750
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10003765
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000379b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10003797
cmp esi, edx
jae 0x1000379b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x10003787
cmp esi, edx
jb 0x100037a1
pop esi
pop edi
xor eax, eax
pop ebx
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x1000ac21
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10015070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.10007341
mov dword [ebp - 0x14], eax
cmp dword [0x10016d84], edi
jne 0x1000ad12
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x1000ac9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1000adf2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1000adf2
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000adf2
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x10016d84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x10016d88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x10016d8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10016d94], eax
test eax, eax
je 0x1000ad0f
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10016d90], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1000ad37
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1000ad2a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x1000ad4c
push 4
pop eax
jmp 0x1000adf4
cmp dword [ebp - 0x14], edi
je 0x1000ad4c
push dword [0x10016d84]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1000ad31
mov eax, dword [0x10016d90]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x1000adaa
cmp dword [0x10016d94], esi
je 0x1000adaa
push eax
call ebx
push dword [0x10016d94]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1000adaa
test eax, eax
je 0x1000adaa
call ecx
test eax, eax
je 0x1000ad9f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1000ad9f
test byte [ebp - 8], 1
jne 0x1000adaa
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x1000adda
mov eax, dword [0x10016d88]
cmp eax, esi
je 0x1000add7
push eax
call ebx
test eax, eax
je 0x1000add7
call eax
mov edi, eax
test edi, edi
je 0x1000add7
mov eax, dword [0x10016d8c]
cmp eax, esi
je 0x1000add7
push eax
call ebx
test eax, eax
je 0x1000add7
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x10016d84]
call ebx
test eax, eax
je 0x1000adf2
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x1000adf4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10003b9b
leave
ret
Function at 0x5d2fa0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x125000]
push edi
or ebp, 0xffffffff
jmp 0x5d2fc2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5d2fc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5d2fb8
mov eax, 1
add ebx, ebx
jne 0x5d2fdb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5d2fec
jne 0x5d300b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5d300b
dec eax
add ebx, ebx
jne 0x5d2ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5d2fd0
add ebx, ebx
jne 0x5d3007
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5d305d
xor ecx, ecx
sub eax, 3
jb 0x5d3023
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5d3092
sar eax, 1
mov ebp, eax
jmp 0x5d302e
add ebx, ebx
jne 0x5d302e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5d2ffc
inc ecx
add ebx, ebx
jne 0x5d303c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5d2ffc
add ebx, ebx
jne 0x5d3049
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5d303e
jne 0x5d305a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5d303e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5d307c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5d306e
jmp 0x5d2fbe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5d307c
add edi, ecx
jmp 0x5d2fbe
pop esi
mov edi, esi
mov ecx, 0x58a6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5d309a
cmp byte [edi], 0x13
jne 0x5d309a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5d309f
lea edi, [esi + 0x1c9000]
mov eax, dword [edi]
or eax, eax
je 0x5d310e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x265864]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x265954]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5d30cc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x265958]
or eax, eax
je 0x5d3108
mov dword [ebx], eax
add ebx, 4
jmp 0x5d30e9
call dword [esi + 0x265968]
mov ebp, dword [esi + 0x26595c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5d3142
sub esp, 0xffffff80
jmp 0x4cdd08
Function at 0x445c80
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x445d8c
test eax, eax
je 0x445d8c
push esi
push edi
mov ecx, 0x10
mov esi, 0x460ff0
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x445d73
lea edi, [eax + 4]
jmp 0x445cd7
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x445cec
mov dword [ebp - 4], 2
jmp 0x445d0d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x445d03
mov dword [ebp - 4], 1
jmp 0x445d0d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x445d83
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x445d46
mov byte [ecx], 0x3d
jmp 0x445d52
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x445d5d
mov byte [ecx], 0x3d
jmp 0x445d63
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x445cd4
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4040e0
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1cc8
call fcn.0040f7a0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [0x481588]
push ebx
push esi
mov dword [ebp - 8], ecx
mov ecx, dword [0x48158c]
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], ecx
call fcn.004040d0
mov ebx, dword [ebp - 0xc]
mov edx, dword [0x481590]
mov eax, dword [0x481594]
mov edi, dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
add ebx, 0x23f
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 0x20
jmp 0x404150
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x488d1c]
shl esi, 4
add esi, dword [ebp - 0x20]
cmp eax, 0xfa9
jne 0x40417c
mov dword [0x488d18], 0xedeb2e40
jmp 0x404197
cmp eax, 0x3eb
jne 0x404197
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x4887a8], 0
mov ecx, dword [ebp - 8]
add ecx, ebx
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x24]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x488d1c], 0x9e6
mov dword [0x488d14], 0xf4ea3dee
jne 0x4041cf
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x488d1c], 0x213
jne 0x40426b
push 0
lea eax, [ebp - 0x14c8]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
lea ecx, [ebp - 0x4c8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0xcc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call edi
push 0
push 0
lea ecx, [ebp - 0x1cc8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0
push 0
call edi
lea edx, [ebp - 0x2c]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [ebp - 0x10]
sub esi, dword [ebp - 4]
cmp dword [0x488d1c], 0xc
mov dword [ebp - 0x10], esi
jne 0x404285
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov edx, esi
shr edx, 5
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
mov eax, esi
shl eax, 4
add eax, dword [ebp - 0x18]
lea ecx, [ebx + esi]
xor eax, ecx
xor eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
sub dword [ebp - 8], eax
add ebx, 0x61c88647
sub dword [ebp - 0x14], 1
jne 0x404150
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
mov dword [eax], edx
mov dword [eax + 4], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4042e0
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Read pipe
Set environment variable
Set thread local storage value
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1408
call fcn.0040f7a0
mov eax, dword [0x488d1c]
mov ecx, dword [0x4887ac]
shr eax, 3
test eax, eax
jbe 0x4043fa
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x488d1c], 0x959
jne 0x4043e0
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
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_SetFileShortNameW]
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 edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [ebp - 0x808]
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 - 0x1408]
push eax
push 0
call edi
mov ecx, dword [ebp - 4]
push ecx
call fcn.004040e0
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404320
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4058d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4800d8]
jne 0x4058da
repz ret
jmp fcn.00408eae

Function at 0x408ad4
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.00407a3f
and dword [ebp - 4], 0
cmp dword [0x486750], 0
mov ebx, eax
jne 0x408b85
push 0x401b10
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408c36
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b04
push edi
call esi
test eax, eax
je 0x408c36
push eax
call fcn.004079cd
mov dword [esp], 0x401af4
push edi
mov dword [0x486750], eax
call esi
push eax
call fcn.004079cd
mov dword [esp], 0x401ae0
push edi
mov dword [0x486754], eax
call esi
push eax
call fcn.004079cd
mov dword [esp], 0x401ac4
push edi
mov dword [0x486758], eax
call esi
push eax
call fcn.004079cd
pop ecx
mov dword [0x486760], eax
test eax, eax
je 0x408b85
push 0x401aac
push edi
call esi
push eax
call fcn.004079cd
pop ecx
mov dword [0x48675c], eax
mov eax, dword [0x48675c]
cmp eax, ebx
je 0x408bdd
cmp dword [0x486760], ebx
je 0x408bdd
push eax
call fcn.00407a48
push dword [0x486760]
mov esi, eax
call fcn.00407a48
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408bdd
test edi, edi
je 0x408bdd
call esi
test eax, eax
je 0x408bd4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408bd4
test byte [ebp - 0xc], 1
jne 0x408bdd
or dword [ebp + 0x10], 0x200000
jmp 0x408c16
mov eax, dword [0x486754]
cmp eax, ebx
je 0x408c16
push eax
call fcn.00407a48
pop ecx
test eax, eax
je 0x408c16
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408c16
mov eax, dword [0x486758]
cmp eax, ebx
je 0x408c16
push eax
call fcn.00407a48
pop ecx
test eax, eax
je 0x408c16
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x486750]
call fcn.00407a48
pop ecx
test eax, eax
je 0x408c36
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408c38
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret