joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432f88
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x4447b8], 0
sete dl
or al, dl
jne 0x4330c8
mov eax, dword [0x4447bc]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4447b8]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x433097
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x4447b8]
call fcn.0040d548
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43308f
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x43308f
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x43308f
mov eax, dword [ebp - 0x14]
call fcn.0043b1b4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43308f
push ebp
call fcn.00432f44
pop ecx
test al, al
jne 0x43308f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x43304b
mov eax, dword [ebp - 0x14]
call fcn.00439b40
dec eax
jle 0x43308f
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.00402f00
cmp byte [ebp - 1], 0
je 0x43308f
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43308f
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4447bc]
call fcn.00432790
inc edi
dec esi
jne 0x432fde
mov eax, dword [0x4447bc]
cmp dword [eax + 8], 0
jle 0x4330af
mov eax, dword [0x4447bc]
call fcn.00432820
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4330c8
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00432dac
pop ecx
test al, al
jne 0x4330c8
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438b4c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x438b7d
je 0x438bd7
sub eax, 7
je 0x438b9e
dec eax
je 0x438bc8
sub eax, 0x17
je 0x438c7c
jmp 0x438cba
add eax, 0xffffff00
sub eax, 9
jb 0x438c68
add eax, 0xffffff09
sub eax, 0xb
jb 0x438c30
jmp 0x438cba
mov eax, ebx
call fcn.0041fcb0
mov edi, eax
test edi, edi
je 0x438d1a
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x438d23
jmp 0x438d1a
test byte [ebx + 0x44], 0x20
jne 0x438d23
jmp 0x438d1a
mov edx, esi
mov eax, ebx
call fcn.00436218
cmp dword [esi + 0xc], 0xffffffff
jne 0x438d23
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.004069a0
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.00434d64
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.00438a24
test eax, eax
je 0x438d23
mov dword [esi + 0xc], 1
jmp 0x438d23
mov edx, esi
mov eax, ebx
call fcn.00438ab8
test al, al
je 0x438d1a
cmp dword [esi + 0xc], 0
jne 0x438d23
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.0043b1b4
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x438d23
mov eax, ebx
call fcn.004358b4
test al, al
jne 0x438d23
jmp 0x438d1a
mov eax, ebx
call fcn.0043b1b4
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x438d1a
cmp dword [0x4438f0], 0
je 0x438d1a
mov eax, dword [0x4438f0]
cmp ebx, dword [eax + 0x24]
jne 0x438d1a
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x4438f0]
call fcn.0043614c
jmp 0x438d1a
mov eax, dword [0x444780]
cmp byte [eax + 0x20], 0
je 0x438d1a
mov eax, dword [0x444780]
cmp dword [eax + 0x1c], 0
je 0x438d1a
mov eax, dword [esi]
mov edx, dword [0x444780]
cmp eax, dword [edx + 0x1c]
jne 0x438d1a
lea eax, [ebp - 0x110]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.0041fbf4
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.00402f00
jmp 0x438d23
mov edx, esi
mov eax, ebx
call fcn.00436218
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4391e4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x439200
cmp dword [esi + 4], 0
je 0x43922d
test byte [ebx + 0x45], 1
jne 0x43921f
mov eax, ebx
call fcn.00438188
test eax, eax
jne 0x43921f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43933d
mov edx, esi
mov eax, ebx
call fcn.00438e5c
jmp 0x43933d
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x439336
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043b1b4
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0043614c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004391e4
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043b1b4
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43933d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4400e4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0043fe60
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00403e0c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x440142
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x443ce4]
mov dl, 1
mov eax, dword [0x43fd84]
call fcn.00408fe0
call fcn.0040347c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000eec0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x1000eecf
pop dword [ebp - 0x50]
mov eax, 0xf484dde0
sub eax, 0xe483ef11
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xd7883a20
sub dword [ebp - 0x60], 0x8935f4d5
mov dword [ebp - 0x5c], 0xfe9505a6
sub dword [ebp - 0x5c], 0xcc61b961
mov dword [ebp - 0x58], 0xdf819666
add dword [ebp - 0x58], 0x6ccaadc8
mov dword [ebp - 0x54], 0x8f6a685a
sub dword [ebp - 0x54], 0x8f6a685a
lea eax, [ebp - 0x60]
push eax
mov eax, 0x9352c7c0
sub eax, 0x834ec784
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x4c9e65c5
add dword [ebp - 0x60], 0x27d40391
mov dword [ebp - 0x5c], 0x3f41d9e9
sub dword [ebp - 0x5c], 0xfdd57874
mov dword [ebp - 0x58], 0x7227f12c
sub dword [ebp - 0x58], 0xeb884c0
mov dword [ebp - 0x54], 0x7806ae66
sub dword [ebp - 0x54], 0x7806ae66
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x4a05a
push 0
call eax
mov ecx, 0xb48058e8
add ecx, 0x4b7ffddb
mov esi, eax
mov edi, 0x10056e00
add edi, dword [ebp - 0x50]
mov edx, 0x89fb6e5a
add dword [ebp - 0x34], esi
mov ebx, dword [edi]
xor dword [ebp - 0x14], 0x5cd9b179
add ebx, edx
sub dword [ebp - 0x44], 0x420a3c14
mov dword [esi], ebx
add esi, 0xad09ee1b
add esi, 0x52f611e9
add edi, 0xaca9597e
add edi, 0x5356a686
loop 0x1000efe0
add eax, 0x7528487
add eax, 0xf8aec958
mov ebx, eax
add eax, 0xe831f28
sub eax, 0xe831f23
mov ecx, 0x10000000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x10031820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1004f37c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10031850
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10031880
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10031880
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1003197a
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100318a9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100318dd
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x1003197a
cmp eax, 1
jle 0x1003193b
cmp eax, 3
jne 0x1003197a
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.1000eec0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10031959
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1003197a
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1003197a
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
Function at 0x10036f80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003ecf8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1004f37c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1004f338]
cmp eax, 0xffffffff
jne 0x10036fb6
xor ebx, ebx
jmp 0x10036fbf
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x10036fff
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003703e
test esi, esi
jne 0x10037042
push 0x10035760
push 0x10050e58
call fcn.1000eec0
mov eax, dword [0x1004f338]
add esp, 8
cmp eax, 0xffffffff
je 0x10036fff
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003702c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003702c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x10037084
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003706d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10037042
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10036fd0
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100370a9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100370a9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.1000eec0
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x10037090
jmp 0x10036fd0

Function at 0x100370d0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x10037130
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x100370fa
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esi]
push edi
add eax, 4
lock inc dword [eax]
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x10037118
cmp eax, 0xffffffff
je 0x10037118
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.kernel32.dll_ResumeThread]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x401000
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x56f470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0x44]
push eax
push 0x55077c
mov dword [ebp - 0x4c], ecx
call fcn.004012a4
lea eax, [ebp - 0x44]
push 0x38
push eax
mov edx, 0x5504a0
mov edi, eax
call fcn.004011f1
add esp, 0x14
and dword [ebp - 0x48], 0
mov ebx, dword [ebp - 0x48]
lea ebx, [ebx + 0x550508]
movzx edi, byte [ebx]
lea esi, [ebp - 0x44]
call fcn.00401252
movzx edi, byte [ebx]
lea esi, [ebp - 0x28]
call fcn.00401252
mov edi, dword [ebp - 0x4c]
lea eax, [ebp - 0x44]
push 0x30
push eax
mov edx, 0x5504d8
call fcn.004011f1
inc dword [ebp - 0x48]
add dword [ebp - 0x4c], 0x30
cmp dword [ebp - 0x48], 0x10
pop ecx
pop ecx
jl 0x40103f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fa36f
leave
ret

Function at 0x40108f
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x56f470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x4c], eax
push 0x40
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
mov ebx, ecx
call fcn.004012a4
lea eax, [ebp - 0x44]
push 0x40
push eax
mov edx, 0x5503d0
mov edi, eax
call fcn.004011f1
add esp, 0x14
mov dword [ebp - 0x48], 0x10
push 8
pop ecx
lea esi, [ebp - 0x24]
lea edi, [ebp - 0x6c]
rep movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [ebp - 0x24]
call fcn.0040113c
xor eax, eax
mov cl, byte [ebp + eax - 0x44]
xor byte [ebp + eax - 0x24], cl
inc eax
cmp eax, 0x20
jl 0x4010ea
push 8
pop ecx
lea esi, [ebp - 0x6c]
lea edi, [ebp - 0x44]
add ebx, 0x30
dec dword [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
jne 0x4010d4
lea eax, [ebp - 0x44]
push 0x40
push eax
mov edx, 0x550410
mov edi, eax
call fcn.004011f1
mov ebx, dword [ebp - 0x4c]
mov eax, edi
push eax
call fcn.004012e2
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fa36f
leave
ret 8
Function at 0x40113c
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x56f470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
push 0x30
push ebx
mov edx, 0x550450
lea edi, [ebp - 0x34]
mov dword [ebp - 0x3c], ebx
call fcn.004011f1
mov esi, dword [ebp + 8]
pop ecx
pop ecx
mov eax, edi
xor ecx, ecx
sub esi, eax
lea eax, [ebp + ecx - 0x34]
mov dl, byte [esi + eax]
xor byte [eax], dl
inc ecx
cmp ecx, 0x30
jl 0x40116f
lea esi, [ebp - 0x32]
xor edi, edi
mov dword [ebp - 0x38], 8
mov al, byte [esi - 1]
mov cl, byte [esi - 2]
add al, al
add al, byte [esi]
add cl, cl
add cl, byte [esi + 3]
add al, al
add al, byte [esi + 1]
movsx ecx, cl
add al, al
add al, byte [esi + 2]
add ecx, edi
movsx eax, al
push 4
add ecx, ecx
lea eax, [eax + ecx*8 + 0x550518]
push ebx
push eax
call fcn.004012a4
add esp, 0xc
add edi, 4
add esi, 6
add ebx, 4
dec dword [ebp - 0x38]
jne 0x40118a
mov edi, dword [ebp - 0x3c]
push 0x20
push edi
mov edx, 0x550480
call fcn.004011f1
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fa36f
leave
ret 4

Function at 0x4017b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1318
call fcn.004ff810
mov eax, dword [0x56f470]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x7ff
lea eax, [ebp - 0x1007]
push 0
push eax
mov byte [ebp - 0x1008], 0
call fcn.004fd550
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 8]
sub eax, ecx
cdq
mov esi, 0x10f
idiv esi
and dword [ebp - 0x130c], 0
add esp, 0xc
test eax, eax
je 0x401851
xor eax, eax
jmp 0x401814
mov eax, dword [ebp - 0x1314]
lea esi, [eax + ecx]
mov ecx, dword [ebx]
mov dword [esi + 6], ecx
lea edi, [ebp + eax - 0x1008]
push 0x43
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 4]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x10f
add eax, esi
mov dword [ebp - 0x1314], eax
mov eax, dword [ebx + 8]
sub eax, ecx
cdq
idiv esi
inc dword [ebp - 0x130c]
cmp dword [ebp - 0x130c], eax
jb 0x40180e
lea ecx, [ebp - 0x1308]
call fcn.00401000
push 0x7ff
xor esi, esi
lea eax, [ebp - 0x807]
push esi
push eax
mov byte [ebp - 0x808], 0
call fcn.004fd550
add esp, 0xc
mov edi, 0x800
lea eax, [ebp + esi - 0x808]
push eax
lea eax, [ebp + esi - 0x1008]
push eax
lea ecx, [ebp - 0x1308]
call fcn.0040108f
add esi, 8
lea eax, [esi + 8]
cmp eax, edi
jl 0x40187f
and dword [ebp - 0x1310], 0
push 0x550788
lea eax, [ebp - 0x1310]
push 0x550770
push eax
call fcn.004fac86
add esp, 0xc
test eax, eax
jne 0x4018ef
push dword [ebp - 0x1310]
lea eax, [ebp - 0x808]
push edi
push 1
push eax
call fcn.004fae24
push dword [ebp - 0x1310]
call fcn.004faf5c
add esp, 0x14
xor eax, eax
jmp 0x4018f2
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004fa36f
leave
ret
Function at 0x403070
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebx]
test edi, edi
je 0x4030a7
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push edi
push esi
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4030a1
add esi, dword [ebp - 4]
sub edi, dword [ebp - 4]
jne 0x40307f
jmp 0x4030a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esi, dword [ebp + 0xc]
xor eax, eax
pop edi
mov dword [ebx], esi
inc eax
pop esi
leave
ret 8

Function at 0x4030b5
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc18
mov eax, dword [0x56f470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
push 0x5508d8
mov edi, 0x400
lea eax, [ebp - 0xc08]
push edi
push eax
mov esi, ecx
call fcn.00403263
add esp, 0x10
mov dword [ebp - 0xc0c], edi
call fcn.0040323e
and dword [ebp - 0xc14], 0
push edi
lea eax, [ebp - 0xc18]
push eax
lea eax, [esi + 8]
push eax
lea ebx, [esi + 4]
push ebx
mov dword [ebp - 0xc18], 0xc
mov dword [ebp - 0xc10], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x40315f
push 0
push 1
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x40315f
lea ecx, [ebp - 0xc08]
call fcn.00403172
test eax, eax
je 0x40315f
lea eax, [ebp - 0x404]
push eax
push esi
lea ebx, [ebp - 0xc0c]
call fcn.00403070
jmp 0x403161
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fa36f
leave
ret 4

Function at 0x403172
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x56f470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0x85c]
push eax
mov edi, ecx
mov dword [ebp - 0x85c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esi + 8]
mov dword [ebp - 0x81c], eax
mov dword [ebp - 0x820], eax
push 0xffffffffffffffff
xor eax, eax
push edi
mov word [ebp - 0x82c], ax
lea eax, [ebp - 0x808]
push 0x401
push eax
mov dword [ebp - 0x830], 0x101
call fcn.004fafd0
add esp, 0x10
lea eax, [ebp - 0x818]
push eax
xor ebx, ebx
lea eax, [ebp - 0x85c]
push eax
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
lea eax, [ebp - 0x808]
push eax
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x40320f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x403230
push dword [ebp - 0x814]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x818]
call edi
push dword [esi + 8]
call edi
xor eax, eax
mov dword [esi + 8], ebx
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004fa36f
leave
ret